www.webdeveloper.com
Results 1 to 2 of 2

Thread: Javascript dropdown onchange

  1. #1
    Join Date
    Jan 2010
    Posts
    10

    Cool Javascript dropdown onchange

    Hello to everyone!

    I have one dropdown menu and few radiobuttons. Dropdown menu has (for example) 4 option values:
    Option1
    Option2
    Option3
    Option4

    How to make changing sellection of radiobuttons respectively on dropdown menu sellection?
    Example:

    If is sellect second option from dropdown menu then second radiobutton is sellect.

    Thanks a lot!

  2. #2
    Join Date
    Apr 2003
    Location
    Netherlands
    Posts
    21,654
    Code:
    onchange="this.form.radioName[this.selectedIndex].checked=true;"
    At least 98% of internet users' DNA is identical to that of chimpanzees

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

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



Recent Articles