jQuery: how to use :checked, if my element is $(this)
jquery
Solution
$(this).filter(":checked");
or if you're testing it
if ($(this).is(":checked")){
// ...
}
Problem
how can I use the option :checked with $(this) in jQuery ? i.e. $(this:checked) ? thanks