Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 2 of 2
  1. #1
    New to the CF scene
    Join Date
    Jan 2007
    Posts
    6
    Thanks
    0
    Thanked 0 Times in 0 Posts

    DropBox selection opening more fields

    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!

  • #2
    Supreme Master coder! glenngv's Avatar
    Join Date
    Jun 2002
    Location
    Philippines
    Posts
    11,037
    Thanks
    0
    Thanked 250 Times in 246 Posts
    Code:
    <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.


  •  

    Tags for this Thread

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •