SitePoint Sponsor

User Tag List

Results 1 to 3 of 3

Thread: Auto Drop Down

  1. #1
    SitePoint Enthusiast ATLien's Avatar
    Join Date
    Apr 2003
    Location
    ATL
    Posts
    50
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Auto Drop Down

    I have a drop down box with 5 values in it. I am trying to figure out how I can make it so that as soon as a user selects a option from the drop down, it will load a certian page. With out them having to submit a forum. Can this be done. Thanks for the help in advanced.

    P.S. I have little JS knowledge.

  2. #2
    SitePoint Addict streetlife's Avatar
    Join Date
    Mar 2004
    Location
    D-Town
    Posts
    369
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    For example:
    HTML Code:
     <select name="menu" onChange="window.location=this[this.selectedIndex].value">
    <option value="">Jump to</option>
    <option value="[url="http://www.msn.com/"]http://www.msn.com/">MSN.com</option[/url]>
    <option value="[url="http://www.google.com/"]http://www.google.com/">google.com</option[/url]>
    </select>

  3. #3
    SitePoint Enthusiast ATLien's Avatar
    Join Date
    Apr 2003
    Location
    ATL
    Posts
    50
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Thanks alot buddy!!!


Bookmarks

Posting Permissions

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