Jquery .change() get :selected text value

How to get on change selected option text in wordpress?You need to find selected value of select on change function jQuery. Below is the example

jQuery(document).ready(function(){jQuery("select#field").change(function(){
var thisvalue = $(this).find("option:selected").text();
alert(thisvalue);
});

});
Post Created 43

Leave a Reply

Related Posts

Begin typing your search above and press enter to search. Press ESC to cancel.

Back To Top