You'd set the selectedness with the DOM property selected, so $('.test').attr('selected', true) (contrary to the name this is not setting an attribute!) or $('.test')[0].selected= true. Or, what's often more practical than futzing with