Milton Davis
Posts: 0
Joined: Tue Mar 04, 2014 5:12 am

Get value from Select

I can't get this to work. It still only returns ["",""]

I also tried this unsuccessfully:

var newData = [];

Appery('Contact_Select').find(':selected').each( function(){
newData.push($(this).val());
});
newData = JSON.stringify(newData);
alert(newData);

Igor
Posts: 0
Joined: Tue Apr 02, 2013 12:05 pm

Get value from Select

This code is correct. Could you check please - is the item values in your list not only text labels. You can try to create a new mobileselectmenu and put code on mobileselect menu value change event.

Milton Davis
Posts: 0
Joined: Tue Mar 04, 2014 5:12 am

Get value from Select

I got it working, here is my code:

var newData = [];
newData.push(Appery("Contact_Select").find(':selected').text());
return newData;

Return to “Issues”