I have a string UserLevel and I want to set the dropdown list value to the item that matches this string.
I have tried this:
$("#Level option:selected").val(UserLevel);
But it didn't work.
and I don't know how to use this:
$("#Level option[value='']").attr("selected", "selected");
Is there any other way?