As the question says, how do I set the value of a DropDownList control using jQuery?
Jquery – How to set the value of a DropDownList using jQuery
drop-down-menujquery
Related Question
- Javascript – How to redirect to another webpage
- Javascript – How to know which radio button is selected via jQuery
- Javascript – How to check whether a checkbox is checked in jQuery
- Javascript – How to set/unset a cookie with jQuery
- Javascript – Get selected text from a drop-down list (select box) using jQuery
- Javascript – How to return the response from an asynchronous call
- Javascript – Why does the JavaScript code receive a “No ‘Access-Control-Allow-Origin’ header is present on the requested resource” error, while Postman does not
Best Solution
just make sure the value in the options tags matches the value in the val method.