Results 1 to 3 of 3
  1. #1
    Full Member Code Monkey's Avatar
    Join Date
    June 11th, 2007
    Drop Down List programming Question...
    I have a simple html drop down list.. Does anyone know a way to initiate some javascript when someone makes a selection on the dropdown list, but without them hitting the submit button...

    In other words, the drop down list has "Red" "Blue" "Green" as options... I'd like to be able to do some javascript when they select "Green" but it has to happen before they hit the submit button..

    Make sense?

  2. #2
    ABW Ambassador Rehan's Avatar
    Join Date
    November 3rd, 2006
    You have to use the onChange event. There's a decent tutorial at

  3. #3
    ABW Ambassador bettylou's Avatar
    Join Date
    December 27th, 2005
    Hi Code Monkey,

    Just as a side note, be sure to keep the submit button for accessibility reasons. Folks that are visually impaired and use a reader need the button to maintain functionality.

    .....sorry to be a busybody, just wanted to point that out.

  4. Newsletter Signup

+ Reply to Thread

Similar Threads

  1. Zen cart programming question
    By SlowCooker in forum Programming / Datafeeds / Tools
    Replies: 5
    Last Post: February 12th, 2010, 04:02 PM
  2. Another weird programming question
    By micheck in forum Programming / Datafeeds / Tools
    Replies: 1
    Last Post: May 20th, 2009, 10:01 AM
  3. CJ needs a merchant drop-down list
    By webworker in forum Commission Junction - CJ
    Replies: 14
    Last Post: September 27th, 2005, 11:42 PM
  4. Drop shipper list
    By Trilitech in forum Marketing Resources & Power Tools
    Replies: 9
    Last Post: June 23rd, 2005, 03:08 PM

Posting Permissions

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