SitePoint Sponsor |
|
User Tag List
Results 1 to 4 of 4
-
Nov 13, 2009, 02:44 #1
- Join Date
- Oct 2009
- Posts
- 43
- Mentioned
- 0 Post(s)
- Tagged
- 0 Thread(s)
need js code to disable checkboxes...
I need javascript code to disable (2) check box when radiobutton is selected..
...It would be great if someone Help me with that...
-
Nov 13, 2009, 02:55 #2
You should post JS questions in the JS forum. More chance of finding someone that can help you
Guido - Community Team Leader
The Votes Are In: The Winners of the 2013 Community Awards are...
Blog - Free Flash Slideshow Widget
-
Nov 13, 2009, 03:10 #3
Hope this helps (untested version)
Code JavaScript:var radio_flag = document.getElementById('radio_id').checked; if(radio_flag){ document.getElementById('checkbox1_id').setAttribute('disabled', 'disabled'); document.getElementById('checkbox2_id').setAttribute('disabled', 'disabled'); }
Thanks
-
Nov 13, 2009, 03:27 #4
- Join Date
- Oct 2009
- Posts
- 43
- Mentioned
- 0 Post(s)
- Tagged
- 0 Thread(s)
thanks for reply guys,
Hereafter i ll post correctly....
Bookmarks