How do I add a div after each item in a checkbox list. My new div should be right after the clicked Item and before the next item in the checkbox list control in asp.NET I know that the checkbox list is rendered as a table and each item is in a tr and an input and label inside the td
table
for each item
—-table row
—-td
—–input and label
end foreach
/table
I need to add a div after the label of the checked item in the checkboxlist using “jQuery”. How do i find the label tag and insert the div from there on….?/
Actually, you’re inserting outside, so you’ll want to use after.
http://docs.jquery.com/Manipulation/after#content