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