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,068
    Thanks
    0
    Thanked 256 Times in 252 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.
    Last edited by glenngv; 11-15-2010 at 05:51 AM.
    Glenn
    ____________________________________

    My Blog
    Tower of Hanoi Android app (FREE!)
    Tower of Hanoi Leaderboard
    Samegame Facebook App
    vBulletin Plugins
    ____________________________________


  •  

    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
    •