JellyBean Issue (select box not populated with first click)
Issue with Android Jelly Bean (WebApp).
I am using below jquery :
jquery.mobile-1.0b2.css
jquery-1.6.4.min.js
jquery.mobile-1.0rc1.min.js
Unable to populate select box options with first click
-- Whenever a selectbox is clicked it does not reveal the options unless it is clicked multiple times
How do I display the options on the first selectbox click? Any help greatly appreciated.
<!-- 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);
});
}
});
});