I have a repeater which contains a table. I am giving the user the ability to add a new row in the repeater by adding a new row to the table.
Can anyone give me ideas? As I am very new to jQuery, can someone give sample code?
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.
If you look at the jQuery manipulation methods these are the methods for modifying the DOM in jQuery.
I would suggest for what you are doing something along the lines of:
This will insert a new row at the end of the table. If your table has a tbody (you will have to modify your initial selector to ‘#yourTableId tbody’.
To insert the new row in different positions within the table look though the other manipulation methods – after, before, prepend etc.
Hope this helps, if you are able to be a little more specific about the situation, I can probably give you a more concrete example.