[jQuery] A couple of simple questions.
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta content="text/html;charset=ISO-8859-1" http-equiv="Content-Type">
</head>
<body bgcolor="#ffffff" text="#000000">
<font size="-1"><font face="Courier New, Courier, monospace">Hi folks,
How can I tell what class (or classes) an element has? For instance
I've got an elements like:
<div class="classA classB"></div>
<div class="classA classC"></div>
How can I select all elements that have classA and ClassB but not
classC?
I'd also like to know how to select all items of a certain class and
attribute. For instance:
</font></font><font size="-1"><font
face="Courier New, Courier, monospace"><div class="classA"
Status="On"></div>
</font></font>
<font size="-1"><font face="Courier New, Courier, monospace"><div
class="classA" Status="Off"></div>
</font></font>
<font size="-1"><font face="Courier New, Courier, monospace"><div
class="classA" Status="Off"></div>
</font></font>
<font size="-1"><font face="Courier New, Courier, monospace"><div
class="classA" Status="On"></div>
</font></font>
<font size="-1"><font face="Courier New, Courier, monospace"><div
class="classA" Status="Off"></div>
</font></font>
<font size="-1"><font face="Courier New, Courier, monospace"><div
class="classA" Status="Off"></div>
I want jQuery to match all the elements that are of classA and that
have the Status attribute set to "On". How would I do that?
Thanks so much,
Chris
</font></font>
<pre class="moz-signature" cols="72">--
<a class="moz-txt-link-freetext" href="http://www.cjordan.info">http://www.cjordan.info</a></pre>
<pre class="moz-signature" cols="72">--
<a class="moz-txt-link-freetext" href="http://www.cjordan.info">http://www.cjordan.info</a></pre>
</body>
</html>
_______________________________________________
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/