How To Get onchange Event to Work #166
-
Can any one suggest how I can get an onchange() callback to fire on the above tag. I have tried adding an attribute onchange="my_callback()" and many variations like it, all to no avail. Extensive searching of the SDK docs and google have yielded no insight. Any help appreciated... |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
Finally got this to work using addEventListener() - no matter what I did I could not get a callback on the 'change' event to fire but I finally managed to get it to work using a handler for the 'input' event. This event gives me exactly the behaviour that I need thank goodness... |
Beta Was this translation helpful? Give feedback.
Finally got this to work using addEventListener() - no matter what I did I could not get a callback on the 'change' event to fire but I finally managed to get it to work using a handler for the 'input' event. This event gives me exactly the behaviour that I need thank goodness...