Semantic fix

fixed the $element.is("select") branch so it works