javascript - Detect elements with attribute without value -
lets i've got
<div class="some-class" selected></div>
i'm trying if has attr 'selected', but
$(".some-class").attr("selected") //undefined $(".some-class").is("*[selected]") // false
am able if has selected
attrbute if has no value?
Comments
Post a Comment