Solution var myText = "Pakistan"; $("#CountryDropDownList option:contains(" + myText + ")").attr('selected', 'selected');
Setting selected value of a dropdownlist using jquery
Solution var val="abc"; $("#dropdown > [value=" + val + "]").attr("selected", "true");