Web Analytics Made Easy -
StatCounter onchange change selected value - CodingForum

Announcement

Collapse
No announcement yet.

onchange change selected value

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • onchange change selected value

    Is it possible for one select box to change the shown selection of another? i.e. not rebuild the list of the other select but simply 'select' a different value from the list

    I've got one select with options:

    Gas
    Laser

    and another with options

    £100
    £200
    £300

    I want it so that if you select gas, it selects £200 from the other, but still allows the user to override it and select a different value if they choose. And if laser is selected, its selects £300 from the other.

    thanks

  • #2
    Like this?

    Hint: If you hover the mouse over the example page you will see a button "Edit in jsbin.com" which you can use to view the full source (HTML/Javascript) of the example.

    Comment


    • #3
      looks great! thanks i'll try and implement it to my site

      Comment


      • #4
        Originally posted by devnull69 View Post
        Like this?

        Hint: If you hover the mouse over the example page you will see a button "Edit in jsbin.com" which you can use to view the full source (HTML/Javascript) of the example.
        is it your site ? http://jsbin.com/

        really nice
        www.4sectors.com

        Comment


        • #5
          Mine? No! This is courtesy of Remy Sharp (@rem on Twitter)

          Comment

          Working...
          X
          😀
          🥰
          🤢
          😎
          😡
          👍
          👎