RE: Form Validation problem (fancy solution)
by "Charlton, Mark" <Mark.Charlton(at)saint-gobain.com>
|
| Date: |
Fri, 27 Apr 2001 12:38:08 -0400 |
| To: |
hwg-languages(at)hwg.org |
| |
todo: View
Thread,
Original
|
|
Just out of curiousity, how would you change your mind if the buttons were
hidden? ;)
-----Original Message-----
From: Andrej Kostresevic [mailto:temporalassassin(at)yahoo.com]
Sent: Friday, April 27, 2001 11:04 AM
To: hwg-languages(at)hwg.org
Subject: Form Validation problem (fancy solution)
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
This page is part of a preserved archive of archives.hwg.org. The site is no longer active and its content is not maintained. For enquiries about this archive, write to archive(at)iwanet.org.