Quantcast
Channel: Recent Discussions — DataTables forums
Viewing all articles
Browse latest Browse all 82129

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

$
0
0
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
var addId = myTable.fnAddData([
                        '<input type="text" class="item_name">',
                        'elemtn2',
                         'element3']);
                        var theNode = myTable.fnSettings().aoData[addId[0]].nTr;

                        theNode.find('.item_name').focus()  //not working

Viewing all articles
Browse latest Browse all 82129

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>