selected value of a dropdown using jquery in asp.net mvc
To reteive the selected value of a dropdown using jquery in asp.net mvc
Know the answer? Post it — somebody with the same question will find it here.
Sign in to answer this question
It is the same account you read, post and publish with — and you will come straight back to this page.
Pranay RanaPosted May 12, 2015, 2:14 AM
var selectedvalues = $("#Employee").val();//provide you selected employee id
as per you code Employee is id of the dropdownlist
Check jQuery documentation : http://api.jquery.com/val/
Jithil JohnPosted May 12, 2015, 1:34 AM
@Html.DropDownList("Employee", Model.EmployeeList, "Select Employee")
Shailesh UkePosted May 12, 2015, 1:26 AM
You can use
var assign_to = $('#client_group_id').val();
client_group_id = dropdown list id