javascript - Which Element property is connected to the CSS `:checked` selector? -
i'm using css :checked
selector, like
.mycheckbox:checked { // style checked state }
but, when set
$('.mycheckbox').each(function() { this.checked = false });
the above css remains matched.
how can above :checked
css rule stop matching?
your code works absolutely fine me: http://jsbin.com/xakugemi/1/edit?html,css,output. check checkbox , click uncheck
button. notice missing browser back upwards :checked
selector in ie<8.: http://caniuse.com/#search=checked.
javascript jquery css dom
No comments:
Post a Comment