Delete is a little tricky, two variables needed. One is the existing $eduIdDb obtained from database, second is during POST($eduIDpost) to find out which row is being removed. Hence a…
First find out how many rows has been submitted and removed - $repeatTimes //find out the max number of database rows $dbRow; //find out the max number of submitted rows…
The add and remove button is added in front of the table: <p> <input type="button" class="btn btn-success" value="Add a New Education History" onClick="addRow('eduTable')" /> <input type="button" class="btn btn-warning" value="Remove…
Prepare for two types of scenarios: When the form first open <tbody> <tr> <p> <td><input type="checkbox" required="required" name="chk[]" checked="checked" /> </td> <td> <label>Start Year</label> <input type="hidden" id="edu" style="width:100px" class="form-control" name="spprofile[eduID][]"…
Objective: Create a form to update user's education history. User can create a new record (new row), then add a new row to create another new record. User…