As for the plugins, which replace the select, onchange implemented?

If the plugin replaces select div'ohms then the plug-in performs a function that was sabinina on a select onchange? Just wondering, because onchange is triggered when the select is changed and he "loses" focus, in jquery and in javascript there is no possibility to monitor changes at home.
October 8th 19 at 01:46
3 answers
October 8th 19 at 01:48
Solution
$("select").trigger("change"); when changing .val()?
October 8th 19 at 01:50
The select is hidden (it remains in the house) and hung two way communication, not?
tried. onchange doesn't work without focus, that is when $("select").val('test') nothing happens - timmothy.Trembl commented on October 8th 19 at 01:53
so the stupid handler is extracted from the select is invoked and handles — all the same, because the user we can (theoretically) call onchange() on a hidden element - nikita.Stracke commented on October 8th 19 at 01:56
below have all answered correctly - mylene_Moore63 commented on October 8th 19 at 01:59
October 8th 19 at 01:52
When you programmatically change input/selekta is not called onchange. To call this event as written above. In the case of jQuery using the trigger()
Well, that is, $("select").val(123).trigger("change"), $("select").val(123).change() - timmothy.Trembl commented on October 8th 19 at 01:55

Find more questions by tags JavaScriptjQuery