Eric Pascarello wrote:I do not understand what you are trying to say.
Sounds like to me you hae <input type="checkbox" class="tab1" /> and you are wondering why that selector does not work.
Your selector is saying look for an element that is checked whose parent has a class.
If you want to do it so it is not looking at a parent you do not need a space
$(".tab1:checked")
You can also do it like this:
$("input.tab1[@type=radio][@checked]")
Eric
Ya I am just wondering why it did not find any of the checked checkboxes.
I think I tried it without a space and it still did not work for me. It only worked for me when I had a <span> tag around my input checkbox and the span tag had the class selector.
So I was wondering why this is the case?
Also how would I find all unchecked checkboxes?
Edit
Never mind about the unchecked I figured it out(forgot about the not operator)