hwg-languages archives | Jul 2001 | new search | results | previous | next |
Re: Checkboxesby Andrej Kostresevic <temporalassassin(at)yahoo.com> |
|
I have built a set of functions for my company that does this for both checkboxes and select-multiple combo-boxes. I have placed them in a .js file. If anyone wants it, let me know. Andrej --- Derek Lavine <derek(at)realware.com.au> wrote: > Hi all, > > This is probably real simple but I don't know how to do it. > > I have this code > > <input type="Checkbox" name="f_news" value="All" > onClick="newsSelection(this)"> > <input type="Checkbox" name="f_news" value="Business" > onClick="newsSelection(this)"> > <input type="Checkbox" name="f_news" value="Sport" > onClick="newsSelection(this)"> > <input type="Checkbox" name="f_news" value="Travel" > onClick="newsSelection(this)"> > > And I am wondering what I need to do in the newsSelection() javascript > function in order to check > 1. If ALL has been selected and if so check all the other checkboxes. > 2. If one of the checkboxes is unselected make sure that ALL is also > unselected > > Thanks for your help > > Derek > __________________________________________________ Do You Yahoo!? Make international calls for as low as $.04/minute with Yahoo! Messenger http://phonecard.yahoo.com/
HWG: hwg-languages mailing list archives, maintained by Webmasters @ IWA