Tags
Asked 3 years ago
19 Jul 2021
Views 284
Eusebio

Eusebio posted

get the selected dropdown value on change

i have dropdown with value , i want to use jquery to get value of the dropdown


<select id="mesurement_type" name="mesurement_type" >
				<option value="0">Choose</option>
				<option value="1"   >Men</option>
				<option value="2"  >Women</option>
				</select>


how to get the selected dropdown value on change in jQuery
ravi

ravi
answered Jul 19 '21 00:00

change function is usefull here to get the value as below code


$('#mesurement_type').change(function() {    
    var item=$(this);
    var val=item.val();
   alert(val);
 
});
Post Answer