Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations bkrike on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

OnChange event from another Event 1

Status
Not open for further replies.

PoppapumpJ

Programmer
Dec 17, 2001
86
US
hi,

I have a set-up where an image is changed when the onChange event is fired for a dropdown.

Everything works great when the user makes the selection.

However, I would like to expand it so that the user can click a thumbnail and the option will change value.

I can get the value to change but I assumed the Select's onChange would fire, but that is not the case.

Is there any way to accomplish this type of cascading call?

thanks
 
How about using an onclick event rather than an onchange? If memory serves correctly, onchange fires when a value has changed AND the field loses focus.

There's always a better way. The fun is trying to find it!
 

The select element's onchange event will only fire when it is changed manually, not programatically. You will have to manually call the onchange function when your images are clicked.

Hope this helps,
Dan
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top