I have a html table generated dynamically here is the structure
row 1 headings
row 2 headings
all dynamic rows such as values with text boxes and select boxes
last row with add button
last row with another button
Now in the above table how how do i get the last dynamic row html content so that when i click on a button i can add a new row same as previous row . I tried many statements How do i get the last dynamic row content in table that is before 2 buttons
tr= $("#Tbl tr:last").html(); //outputs row with add button only but looking for last dynamic row before the add button
Use a
tbodyto hold dynamic rows, and atfootfor bottom rows with button controls, then search withintbodyfor last row