...

View Full Version : DropBox selection opening more fields



Smell
11-15-2010, 01:33 AM
Hy everyone!

It's a simple question. I need to create a drodbox menu in a way that when the thrid option is selected, it opens up a check box in the same form.

How can that be done?

Txs a lot!

glenngv
11-15-2010, 06:47 AM
<form>
<select name="sel" onchange="this.form.chk.style.display=(this.selectedIndex==2) ? 'inline' : 'none';">
<option>item 1</option>
<option>item 2</option>
<option>item 3</option>
</select>
<input type="checkbox" name="chk" />
</form>

If you have many fields to show, enclose the fields in a div/span then hide/show the div/span.



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum