JqueryNo Comments

default thumbnail

Here is how to get the value of selected option of a select dropdown in jquery.

HTML

<select class="selectTime">
    <option>Select<option>
    <option value="Rahul">Rahul<option>
    <option value="Deepak">Deepak<option>
    <option value="Kapil">Kapil<option>
</select>
$(".selectTime").change(function(){
   alert($(this).find('option:selected').val());
})

Be the first to post a comment.

Add a comment