HTML, JavaScript And CSS Help
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
 
 
User Name:
Password:
Remember me
Go Back   ASP Free ForumsProgrammingHTML, JavaScript And CSS Help

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread ASP Free Forums Sponsor:
  #1  
Old January 21st, 2004, 01:58 PM
heilmank heilmank is offline
Registered User
ASP Free Newbie (0 - 499 posts)
 
Join Date: Dec 2003
Location: Wisconsin
Posts: 3 heilmank User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
changing checkbox label in checkbox generated in vb.net

I am trying to have a checkbox say something different when it is checked. I could use an onclick event to do this but the problem lies in the way vb.net is rendering the checkbox. I am specifically having problems getting access to the label. With vb.net it is generating the checkbox as a checkbox with corresponding label linked by a for:

<input id="_ctl25_checkBoxLine2" type="checkbox" name="_ctl25:checkBoxLine2"/><label for="_ctl25_checkBoxLine2n">Line2n</label>

How do I get access to the label if it doesn't have an id? So getElementById won't work. Is there someway to use the label's for= attribute?

Any suggestions would be appreciated. thanks.

Reply With Quote
Reply

Viewing: ASP Free ForumsProgrammingHTML, JavaScript And CSS Help > changing checkbox label in checkbox generated in vb.net


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 3 hosted by Hostway