Velocity Reviews

Velocity Reviews (http://www.velocityreviews.com/forums/index.php)
-   ASP .Net Web Controls (http://www.velocityreviews.com/forums/f63-asp-net-web-controls.html)
-   -   ClientIds for individual CheckBoxes in a CheckBoxList (http://www.velocityreviews.com/forums/t780991-clientids-for-individual-checkboxes-in-a-checkboxlist.html)

Nathan Sokalski 04-03-2009 06:26 PM

ClientIds for individual CheckBoxes in a CheckBoxList
 
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.
--
Nathan Sokalski
njsokalski@hotmail.com
http://www.nathansokalski.com/



Nanda Lella[MSFT] 04-29-2009 06:59 PM

RE: ClientIds for individual CheckBoxes in a CheckBoxList
 
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.



All times are GMT. The time now is 11:47 AM.

Powered by vBulletin®. Copyright ©2000 - 2013, vBulletin Solutions, Inc.
SEO by vBSEO ©2010, Crawlability, Inc.