I'm trying to get the text value of the select option here and i keep getting the value what am i doing wrong here is the code
jQuery.each(jQuery('select.personalize_toggle'),function(i){
var t = jQuery(this).html();
alert(t);
});
here is the html
<select class=" personalize_toggle " >
<option value="0" ></option>
<option value="1" >Vargas</option>
</select>
I want to get 'Vergas' out the select in my jquery each loop
Another try
jQuery.each(jQuery('select.personalize_toggle option:selected'),function(i){
var val = jQuery(this).text();
alert(val); // also alerts 1
});