<form name="form1" action="interview.php" method="POST"><button id="but">add</button><button id="delete">delete</button> <table id="tb" > <tbody> <tr><td>name:</td><td><input type="text" name="name[]"></td><td>ACC NO</td><td><input type="text" name="acc_no[]"></td></tr> </tbody> </table> <input type="submit" value="submit"> </form>
$("#delete").click(function() { var RowCount = $('#tb tbody>tr').size(); if (RowCount > 1) { $('#tb tbody tr:last').remove(); return false; } });
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)