how to stop onChange in javascript

Posted by shrimpy on Stack Overflow See other posts from Stack Overflow or by shrimpy
Published on 2009-07-08T03:11:31Z Indexed on 2010/03/11 19:54 UTC
Read the original article Hit count: 311

Filed under:

in one of my selection box, i have a onChange="..." specified... coz i want to change some other form value after any selection changes.

however ... in the same page, some wired case i have to manually set the value.. so i have to use some javascript to set the value of the selection combox, but in this case, i don`t want that onChange event to be fired...

how can i walk around it???

Forgot to mention that i am actually using dijit.form.comboBox. for normal HTML form comboBox, it won`t cause any issue. Only i use the dijit comboBox, and i try to set the value to some other value, dojo will trigger the onChange.

© Stack Overflow or respective owner

Related posts about javascript-events