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

unwanted option in select once populated

Dear Appery,

i'm using two select widgets, when choosing an option in the first it changes the other select, this is the code for the first select:

code
var x = Appery("select_language").find("option:selected").val();
var newData = x.split(',');

var dropDown = $('[name=select_voice]');
dropDown.empty();

for(i = 0; i < newData&#46;length; i++) {
dropDown&#46;append('<option value=​"' + newData + '">​' + newData + '<&#47;option>');
}

dropDown&#46;selectmenu('refresh');
/code

my problem is that i'm getting like an empty "header" (un click-able) in the second select as first option:

Image

i tried to delete it by code without any success... can you please help me figure this out?

many thanks in advance!
Best,
R.

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

unwanted option in select once populated

Hello! Most likely you have an extra comma in first select value. After this line prealert(newData);/pre and see what you get there.

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

unwanted option in select once populated

that's not the case:

Image

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

unwanted option in select once populated

Could you give us your public app link?

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

unwanted option in select once populated

i'll email it later today, thx much in advance!

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

unwanted option in select once populated

i've emailed the link to your support address, thx much!

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

unwanted option in select once populated

Yes, thank you! We'll take a look and update.

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

unwanted option in select once populated

no no no... THANK YOU! :)

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

unwanted option in select once populated

Not sure I understand :) Do you need our help?

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

unwanted option in select once populated

yes i do, just showing my appreciation :)

Return to “Issues”