| JimmyRiddle99 2004-08-26, 12:21 pm |
| I have a basic form with simple fields. There are about 5 checkboxes. One of
them is titled 'place an order'. When this is checked, an advanced section
of the form is revealed (thanks to Murray). What i cant do at the moment
though, is get the advanced section to hide again if the checkbox 'place an
order' is unchecked (incase a user clicks it in error...etc).
I realise i can do this with the use of another checkbox, but that isn't
really what i want.
Currently, the behavior is 'onClick', which obviously only allows for one
action. I was thinking something along the lines of a checkbox has a value
of either true or false depending on whether it is checked or not, so rather
than using 'onClick' i might be able to use 'if value=True - show advanced1'
or 'if value=False - hide advanced1'.
I'm just not familiar enough with the code to put the idea into practice.
Hopefully someone might be able to help.
Many Thanks!
JimR99
|