Page 2 of 2

Get value from Select

Posted: Wed Mar 12, 2014 3:03 am
by Milton Davis

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);


Get value from Select

Posted: Wed Mar 12, 2014 3:45 am
by Igor

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.


Get value from Select

Posted: Wed Mar 12, 2014 4:09 am
by Milton Davis

I got it working, here is my code:

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