Solution
var myText = "Pakistan";
$("#CountryDropDownList option:contains(" + myText + ")").attr('selected', 'selected');
Say Bye to Bugs
var myText = "Pakistan";
$("#CountryDropDownList option:contains(" + myText + ")").attr('selected', 'selected');
Leave a Reply