I'd not advice setting value of select by using .attr('selected', 'selected')
.
It's bad practice. If two options have 'selected' attribute - then what is the value of select?
Here is the simple and easy version that will work:
$('select[name="name"]').val('admin');
DEMO