$('#DropDownList1').find('option').each(function(i,n){ if($(n).text()=='Item 5') { $(n).attr('selected','selected'); } else { $(n).removeAttr('selected') } });
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)