Maryna Brodina
Posts: 0
Joined: Thu Apr 05, 2012 7:27 am

unwanted option in select once populated

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.

Ram
Posts: 0
Joined: Fri Aug 02, 2013 12:15 pm

unwanted option in select once populated

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

Maryna Brodina
Posts: 0
Joined: Thu Apr 05, 2012 7:27 am

unwanted option in select once populated

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

Ram
Posts: 0
Joined: Fri Aug 02, 2013 12:15 pm

unwanted option in select once populated

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

Image

Return to “Issues”