Javascript – How to append row to table id=”address” on click of button

javascriptjquery

How to append row to table id="address" on click of button

 <tr>
     <td>address:</td>
     <td><input type="text"></input></td>
     <td><input type="text"></input></td>
     <td><input type="text"></input></td>
 </tr>

Best Answer

$('#new_row').click(function() {
    $('table#address').append('<tr><td>columns</td></tr');
});