I have dynamically created a row in table using jQuery by appending the form data. Now I want to add a function to edit on button click:
When user click on edit button, it should remove the row from table and assign the values again to its relevant fields in the form.
Code:
<form id="form1" >
<input type="text" id="input1" />
<input type="text" id="input2" />
<input type="text" id="input3" />
<input type="text" id="input4" />
<input type="submit" id="submit-btn" value="submit" />
</form>
editcode for already existing rows? You must be having somejavascript or jqueryevents/functions..