Jquery – How to set the value of a DropDownList using jQuery

drop-down-menujquery

As the question says, how do I set the value of a DropDownList control using jQuery?

Best Answer

$("#mydropdownlist").val("thevalue");

just make sure the value in the options tags matches the value in the val method.