Hi I was trying to add a row to a table using jQuery, but it is not working. What might be the reason?
And, can I put in some value to the newly added row..?
I always use this code below for more readable
$('table').append([ '', 'My Item 1', 'My Item 2', 'My Item 3', 'My Item 4', '' ].join(''));
or if it have tbody
tbody
$('table').find('tbody').append([ '', 'My Item 1', 'My Item 2', 'My Item 3', 'My Item 4', '' ].join(''));