My drop down has the following values:
US USA
IN India
And other countries.
In my jQuery I want to set the selected item in dropdown to “IN India” by just passing “India”. I would like to know if there is a way to achieve that.
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Something like?
HTML
JS
Working demo http://jsfiddle.net/FKdpn/
Obviously this is tied to the document.ready function, but you can change it as per your requirements. Let me know if you need more help.