I need javascript code to disable (2) check box when radiobutton is selected..
...It would be great if someone Help me with that...
| SitePoint Sponsor |
I need javascript code to disable (2) check box when radiobutton is selected..
...It would be great if someone Help me with that...
You should post JS questions in the JS forum. More chance of finding someone that can help you![]()
Guido - Community Team Advisor
Do you know where the (database) error is? Add it to the list!
Thinking Web: Voices of the Community
Blog - Free Flash Slideshow Widget
Hope this helps (untested version)
But beaware while chosing the right section for threads.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
thanks for reply guys,
Hereafter i ll post correctly....
Bookmarks