I have a select on a page, which is transformed into slider using Filament’s Group selectToUISlider.
Another script on a page is attached to onchange events of the form elements. Every time user changes something, it recalculates the result.
Now here’s the problem – onChange event doesn’t fire for <select> when you use the slider, since <select> value is changed using plugin.
Here’s the fiddle to illustrate the problem: http://jsfiddle.net/t3aMe/
Is there a way to monitor a change in selectedIndex of a select? Or maybe there’s a way to plug into jQuery.val() function to make it trigger('change')?
I suppose you could overwrite the
valfunction:This will trigger the
changeevent for alll select elements in the page, though. You could add a massive hack:Working fiddle: http://jsfiddle.net/t3aMe/2/