Android Issue (focus is not working on select box)
Issue with Android (WebApp).
I am using below jquery :
jquery.mobile-1.0b2.css
jquery-1.6.4.min.js
jquery.mobile-1.0rc1.min.js
Focus is not working on select box in Android WebApp:
-- tried binding the events mouseenter and mouseout
Is there any other way?
<!-- below is the sample code -->
$(document).ready(function () {
$("select").each(function (event) {
if (navigator.userAgent.toLowerCase().indexOf("android") != -1) {
$(this).bind("mouseenter", function (event) {
eval($(this).attr("onfocus"));
somethingToDo(event);
});
$(this).bind("mouseout", function (event) {
eval($(this).attr("onblur"));
somethingToUndoDo(event);
});
} else {
$(this).bind("focus", function (event) {
somethingToDo(event);
});
$(this).bind("blur", function (event) {
somethingToUndoDo(event);
});
}
});
});