[jQuery] attribute selector order

2009-05-21 Thread Jason Persampieri
(Firefox 3.0.10, OS X) Can anyone explain why these two statements would return different sets? >>> inlineTips.filter("[title!=''][value='']") [input.inlinetip, input.inlinetip, input.inlinetip, input.inlinetip, input.inlinetip] >>> inlineTips.filter("[value=''][title!='']") [] To make sure it'

[jQuery] attribute selector problem in opera

2009-05-13 Thread Zoli
I have this query: $("#drag-channels > div[style*='220']") This doesn't work on Opera 9.64 browser, but on my other browsers(FF 3.5beta, IE8, Chrome 2) works perfectly. I wonder if this is a jQuery bug. With this query I want to select a div wich has a left property of 220px. The div looks like t

[jQuery] Attribute selector

2009-03-25 Thread Lay AndrĂ¡s
Hello! I'd like to set a css property on every table, that have style="table-layout: fixed" attribute. I tried this, but don't works: $('table[style="table-layout: fixed"]').css('background-color','#DD'); With id attribute works: $('table[id="mytable"]').css('background-color','#DD');

[jQuery] attribute selector: evaluating to variable

2009-01-23 Thread aldana
hi, how do i let a variable evaluate inside an attribute selector: var adId=$(this).attr("adId"); //i want adId to be evaluated and not compare directly to 'adId' string $('.removeFav[adId=adId]').show(); thanks. - manuel aldana aldana((at))gmx.de software-engineering blog: http://www.alda

[jQuery] Attribute selector with namespace

2008-11-07 Thread Brian J. Cardiff
Is there a way to specify an AttributeFilter for attributes within a certain namespace? I try some alternatives but it seems that is not implemented. For example: Lorem I would need that something like $('[x:foo]') find the span element. Thanks. Brian J. Cardiff bcardiff(?)gmail.com .

[jQuery] Attribute Selector

2008-02-25 Thread Smith, Allex
Correct me if I am wrong... This selector should: [EMAIL PROTECTED] :"[EMAIL PROTECTED]"somedomain.com] only select links that start with "mailto:"; and contain "somedomain.com" Correct? Allex

[jQuery] Attribute selector (^=) problem with "multiple" values

2007-12-20 Thread Nicolas Le Thierry d'Ennequin
Hi jQuery group, The simple piece of code below is designed to highlight table cells whose class name is that of the currently hovered one (to visually group them). In my example the class name itself is film + id (film1, film2, etc) so I use the [attribute^=value] selector. OK to that point, but

[jQuery] Attribute Selector Docs Error?

2007-10-10 Thread Chris Scott
In the attribute selector docs (http://docs.jquery.com/Selectors) it looks like all the selectors are missing an @ before the attribute. e.g. [attribute^=value] should be [EMAIL PROTECTED] At least this is what I found to work after beating my head against a selector for about 20 minutes. :