Page 2 of 2

unwanted option in select once populated

Posted: Wed Oct 09, 2013 10:50 am
by Maryna Brodina

Ok :)
The problem is that Select is created without options. In this case by default Select is created with an empty header and this header can't be refreshed with the method.


unwanted option in select once populated

Posted: Wed Oct 09, 2013 10:52 am
by Ram

ok, so how do i add options when i rebuild the select by JS?


unwanted option in select once populated

Posted: Wed Oct 09, 2013 11:23 am
by Maryna Brodina

It's a standard jqm behavior https://github.com/jquery/jquery-mobi...
You can change app logic (for example first create Select with options, but make it invisible).
Or on page Show event using JS delete header you don't need. For example:
pre$("#" + Appery("select_voice").attr("id") +"-listbox-popup").find("div.ui-header").remove();
$("#" + Appery("select_voice_female").attr("id") +"-listbox-popup").find("div.ui-header").remove();/pre


unwanted option in select once populated

Posted: Wed Oct 09, 2013 11:38 am
by Ram

SUPER!!! you guys are the best!!!

Image