This is Interesting: Free Magazines for Graphics designers and webmasters  


Home > Archive > Dreamweaver > August 2004 > Checkbox Show/Hide Behavior





You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

Author Checkbox Show/Hide Behavior
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


Sponsored Links


Copyright 2003 - 2009 forum4designers.com  Software forum  Computer Hardware reviews