Add new row in table and focus in last row input element

Add new row in table and focus in last row input element

dubzilladubzilla Posts: 1Questions: 0Answers: 0
edited December 2012 in General
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]
This discussion has been closed.