$("#tableid tbody:last").append(html);
This creates table rows dynamically.
Each newly created row has a “remove” button.
Now if i click that remove button that row will be deleted.
How can i do this.
Thanks in advance.
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
using
.liveto bind your event will bind it automatically when your row is dynamically added.Edit
liveis now deprecated, since version 1.7 I think.The way to go now is using
oninstead oflive.See the doc.