I wish that, when I choose an option, the dropdown menu will close automatically. It doesn't work on Safari (iOS 7).
This is my code:
HTML:
<select id="sel1">
<option>Option 1</option>
<option>Option 2</option>
<option>Option 3</option>
</select>
JS:
$("#sel1").change(function () {
$(this).blur();
});
On iOS 7, when i trigger the onchange event, the dropdown menù doesn't close automatically, but i have got to tap the "Done" Button (on iOS <=6 it works).
What am I doing wrong?
Thanks in advance