Getting Id of dynamic rows
I am trying to implement a table where I can add and delete rows and columns on a button click. By default the table has two rows. every property i try to implement on the rows only work for the two rows that are static. Nothing apply applies on the dynamically added rows. I cannot get the id of the rows as i am just appending the html code of row after the last row.
Is there a way to apply properties like hover and other properties in it.
This is the code I use for adding rows
$('#row').click(function(){
var newRow = $(' <tr > <td> </td></tr>');
$('#testtable tr:last').after(newRow);
});