Thursday, 15 March 2012

html - dropdown menu on Chrome / Android (Samsung) fires event but does not refresh menu selection -



html - dropdown menu on Chrome / Android (Samsung) fires event but does not refresh menu selection -

my webapp works on desktop browsers, , on chrome on google nexus 5, , on native browser samsung, when using app chrome on samsung galaxy (kitkat), dropdown menu not show current selection. when native dropdown alternative list opens, right current value selected, menu on main screen not alter until re-orient phone, , app refreshes. can see event fired , info changes correctly, it's actual dropdown menu form not show right value (until turn phone plenty resize browser) ...

i have sec window in app 2 dropdown menus..in case, when select new value in either dropdown, other dropdown update , show current right value! again, seeing on chrome on samsung, dropdowns work fine chrome on google phone.

ideas?

the html , javascript below:

<select id="monthselect" class="month"> <option value="" disabled="" selected="selected">month</option> <option value="0">jan</option> <option value="1">feb</option> </select> <select id="yearselect" class="year"> <option value="" disabled="" selected="selected">year</option> <option value="0">2009</option> <option value="1">2010</option> </select> $("#monthselect, #yearselect").on('change', function() { var monthval = $("#monthselect").val(); var yearval = $("#yearselect").val(); selectmonthval = parseint(monthval); selectyearval = parseint(yearval); checkstats();

});

well seemed plenty forcefulness dropdown update:

var yeartext = $("#yearselect option:selected").text(); var monthtext = $("#monthselect option:selected").text();

android html google-chrome drop-down-menu samsung-mobile

No comments:

Post a Comment