Answer the question
In order to leave comments, you need to log in
How to change onchange event behavior in miltiple select in iOS Safari?
Dear comrades, such a question. I hung the onchange event on multiple select, it is logical that it is triggered after each field change.
But! On Android Chrome, this algorithm was redesigned for phones: after calling the options window, the browser waits until I click "OK", and only after that my onchange works, and if I click "Cancel", it does not work at all, which is logical. Until the moment I press the "OK" key, I can choose for as long as I like the options that I need.
On mobile Safari, the select multiple algorithm remains the same as on desktop browsers - the event fires instantly as soon as I select something. Tell me, how can I make it so that it in iOS Safari waits for the moment when I click the "Done" button?
Answer the question
In order to leave comments, you need to log in
Found a crutch to solve the problem:
https://github.com/jquery/jquery-mobile/issues/3700
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question