Add new row in table and focus in last row input element
Add new row in table and focus in last row input element
Dear all,
can you help me to focus in in last row input element when dynamically add new row.
Here is my code for new row
[code]
var addId = myTable.fnAddData([
'',
'elemtn2',
'element3']);
var theNode = myTable.fnSettings().aoData[addId[0]].nTr;
theNode.find('.item_name').focus() //not working
[/code]
can you help me to focus in in last row input element when dynamically add new row.
Here is my code for new row
[code]
var addId = myTable.fnAddData([
'',
'elemtn2',
'element3']);
var theNode = myTable.fnSettings().aoData[addId[0]].nTr;
theNode.find('.item_name').focus() //not working
[/code]
This discussion has been closed.