I am looking for a way to dismiss the select picker found in the iOS Safari once a option element is being selected.
We can trigger the whole thing with OnChange, but the picker is still open.
I tried .blur() and .blur(function() { window.clearInterval(interval); })
We are running with jQuery installed.
The process should be :
- User taps the select box
- Options appear in the built-in browser picker
- User taps an option
- Script loads
- Picker goes away afterwards (this is the step missing)
You can bind the onblur event handler to the input elements and check in the handler if any of them have focus (using document.activeElement). As given in this answer to a similar question.