View Full Version : DropBox selection opening more fields

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!

11-15-2010, 06:47 AM
<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>
<input type="checkbox" name="chk" />

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