Show/Hide input box - 7/7/2006 9:42:51
Can anyone tell me how I can update a page to show or hide an input box depening on the selected value of another input box?
Tailslide
Posts: 6367 Joined: 5/10/2005 From: Out here on the raggedy edge Status: online
RE: Show/Hide input box - 7/7/2006 12:57:22
Have a look at this thread - you should be able to get it to do what you want.
RE: Show/Hide input box - 7/11/2006 10:18:21
Thanks that was very useful, however I seem to have problem referring to the label to get that to hide too - can anyone help further?
Posts: 6367 Joined: 5/10/2005 From: Out here on the raggedy edge Status: online
RE: Show/Hide input box - 7/11/2006 12:07:55
..apart from hiding the label that is
It will hide whatever has that particular ID - if you want the label gone too then the easiest way is to put the label within the area to be hidden i.e. stick it in a div and give the div the id T-EODC instead of the Select box.
Posts: 6367 Joined: 5/10/2005 From: Out here on the raggedy edge Status: online
RE: Show/Hide input box - 7/11/2006 12:24:13
In this case yes - you're basically just using the div to attach a label to the section you want to hide. The only styles involved are the display:block and display:none in the javascript bit.