Handling HTML SELECT Options with event delegation to javascript on iPhone Safari -


we developing web application gui customized use on iphone. page on app has 3 subsequent select dropdowns, selection of option 1st dropdown derives options 2nd dropdown, , forth. subsequent dropdown options populated javascript based on onchange event on previous dropdown. problem that, on iphone options select appears 'prev' , 'next' links move previous , next control. when 'next' link clicked, control moves next select , displays options. javascript triggered onchange event previous select , populates options next select. on dropdown 2nd select displays previous options before repopulated javascript. there workaround or event can sequence execution of javascript , selection of next control? there event can triggered when select option selected , before control leaves select element? there handle next , previous links select dropdown option display?

maybe use focus event, in jquery be:

$('#select2').focus(function () {     // update select2's elements }); 

although real question when iphone overload comes in, , when event fired. , can select options changed whilst in view.


Comments

Popular posts from this blog

ASP.NET/SQL find the element ID and update database -

jquery - appear modal windows bottom -

c++ - Compiling static TagLib 1.6.3 libraries for Windows -