ClientIds for individual CheckBoxes in a CheckBoxList

  • Thread starter Nathan Sokalski
  • Start date
N

Nathan Sokalski

I am generating JavaScript that needs to reference the checkboxes rendered
by a CheckBoxList. How can i get the ClientIds for the checkboxes rendered
by a CheckBoxList? Thanks.
 
N

Nanda Lella[MSFT]

In your javascript, get the CheckBoxlist id by using
document.getElementById() and then loop inside that control looking for
input controls to get the child Checkbox id's

Here is a blog post with example code describing how to acheive this:
http://ctrlf5.net/?p=33
Hope this helps.
--

Thank You,
Nanda Lella,
http://www.ctrlf5.net

This Posting is provided "AS IS" with no warranties, and confers no rights.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,755
Messages
2,569,535
Members
45,007
Latest member
obedient dusk

Latest Threads

Top