Actually, no. CSS uses square brackets without the @ symbol to denote the attribute selector.

cf. the CSS 2.1 spec:
http://www.w3.org/TR/CSS21/selector.html#attribute-selectors


--Karl
_________________
Karl Swedberg
www.englishrules.com
www.learningjquery.com



On Sep 11, 2007, at 12:39 PM, Will B. wrote:


Doesn't that still make it XPath style?

On Sep 11, 10:54 am, Karl Swedberg <[EMAIL PROTECTED]> wrote:
In version 1.2, you should be able to do the same thing by removing
the @ symbol from the selectors.

--Karl
_________________
Karl Swedbergwww.englishrules.comwww.learningjquery.com

On Sep 11, 2007, at 9:45 AM, Will B. wrote:



Wow...it did show up, then!  Darn.  I reposted (almost) for nothing.
Thanks for answering, Klaus.

Is there a way to do this w/o using XPath? Now that it's been pushed
off to a plugin, I'd rather stick with core Jquery.

- Will

On Sep 11, 8:31 am, Klaus Hartl <[EMAIL PROTECTED]> wrote:
Will B. wrote:
I currently know how to do this:
  $("//[EMAIL PROTECTED]'123']").remove() ;

This removes a table row that of the style:  <tr customID="123" >

However, these rows in this complex table also have another fashion
that I've been using:
  <tr customID="123" aID="1" bID="2" cID="3">

How can I use Jquery to select rows that have aID="1" and
bID="2", but
(in this case) ignoring the customID and the cID.

Will, try:

$("//[EMAIL PROTECTED]'1'[EMAIL PROTECTED]'2']").remove();

--Klaus


Reply via email to