You are here: Re: Making check boxes active on selection of radio button... « HTML « IT news, forums, messages
Re: Making check boxes active on selection of radio button...

Posted by Mark Parnell on 12/08/78 11:36

Deciding to do something for the good of humanity, Mark
<mark@spam-me-senseless.com> spouted in alt.html:

> What I want is for there to be 8 check boxes under option 5 THAT ARE
> ONLY ACTIVE IF THEY SELECT OPTION 5. In otherwords they are greyed out
> unless they select option 5.

There is no way of doing this in HTML. You will need some sort of
client-side scripting (e.g. Javascript). Use Javascript to disable the
checkboxes on page load (that way anyone with JS disabled/unavailable
can still use them). You would need probably an onclick event on the
radio button to call a function that enables the checkboxes (and one on
the other radio buttons to disable them again).

Of course you still need to validate the data properly server-side (i.e.
ignore the checkboxes unless option 5 is selected).

--
Mark Parnell
=====================================================
Att. Google Groups users - this is your last warning:
http://www.safalra.com/special/googlegroupsreply/

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация