Tuesday, November 18, 2014

Get Jquery mobile dropdown selected Item in Phonegap

I want to get the jquery mobile dropdown selected value and selected text.
this script get the selected text value in phonegap.
$("#yourdropdown option:selected").text();

this script get the dropdown selected value in phonegap.
$("#yourdropdown").val();

No comments:

Post a Comment