javascript - programmatically close select onorientationchange -


i can't seem close select element when rotating ios device.

i've tried blur() (both native , jquery versions), setting style display:none, calling hide(), triggering focus events on other elements, triggering click events on on both select , other elements, disabling select, hiding options, etc. etc.

i know webkit doesn't let close selects blur(). have anymore suggestions?

i guessing here since have no way test it, seems if put anchor in page this:

<a id="myanchor"></a>

and add jquery:

$(window).on("orientationchange",function(){   $('#myanchor').focus(); }); 

it should focus on anchor , close select... maybe?


Comments

Popular posts from this blog

wordpress - (T_ENDFOREACH) php error -

Export Excel workseet into txt file using vba - (text and numbers with formulas) -

Using django-mptt to get only the categories that have items -