if i am looping through some jquery objects that are select
dropdowns, how can I get the class of the selected option using jquery's $(this)
?
elems.each(function(idx, elem) {
if ($(this).is('select')){
console.log($(this, "option:selected"))
}
});
does not seem to work.