Form Validation problem (fancy solution)

by Andrej Kostresevic <temporalassassin(at)yahoo.com>

 Date:  Fri, 27 Apr 2001 08:04:07 -0700 (PDT)
 To:  hwg-languages(at)hwg.org
  todo: View Thread, Original
If you enclose each button in a <div> tag, with style set to
"display:block;", you can hide the rank choices that are already taken.
1. name your divs according to the rank values. 
2. call a hide() function on click
3. in the hide(divID) function
   - check whether the radio button was selected or deselected
   - if selected document.all.divID.style.display="none";
   -else document.all.divID.style.display="block";
Of course, you need to do this for all of the radio buttons that need to
be hidden, but not on the one that was just clicked. :)
Hope this helps,

   

=====
/***********************************
Andrej Kostresevic
Project manager, Senior Developer
~~~~~~~~~~~~Strashev~~~~~~~~~~~~
Consulting, Design & Development
***********************************/

__________________________________________________
Do You Yahoo!?
Yahoo! Auctions - buy the things you want at great prices
http://auctions.yahoo.com/

HWG: hwg-languages mailing list archives, maintained by Webmasters @ IWA