[jQuery] Re: Attribute selector

2009-03-26 Thread Lay András
Hello! On Wed, Mar 25, 2009 at 6:00 PM, Karl Swedberg wrote: > Hi Lay, > You could do it like this: > $('table').filter(function() { >    return this.style.tableLayout == 'fixed'; > }); > Not sure what happens when you try it in a browser that doesn't support the > tableLayout property, though.

[jQuery] Re: Attribute selector

2009-03-25 Thread Karl Swedberg
Hi Lay, You could do it like this: $('table').filter(function() { return this.style.tableLayout == 'fixed'; }); Not sure what happens when you try it in a browser that doesn't support the tableLayout property, though. --Karl Karl Swedberg www.englishrules.com www.learningj

[jQuery] Re: attribute selector: evaluating to variable

2009-01-23 Thread aldana
sorry, of course... did look too much at it to see the most obvious solution. Karl Swedberg-2 wrote: > > Hi Manuel, > > You have to concatenate the rest of the selector, which is a string, > and the variable: > > $('.removeFav[adld=' + adId + ']').show(); > > > --Karl > >

[jQuery] Re: attribute selector: evaluating to variable

2009-01-23 Thread Karl Swedberg
Hi Manuel, You have to concatenate the rest of the selector, which is a string, and the variable: $('.removeFav[adld=' + adId + ']').show(); --Karl Karl Swedberg www.englishrules.com www.learningjquery.com On Jan 23, 2009, at 10:44 AM, aldana wrote: hi, how do i let a

[jQuery] Re: Attribute selector with namespace

2008-11-10 Thread Brian J. Cardiff
Thanks. I will need to apply that tiny patch. Brian J. Cardiff bcardiff(?)gmail.com . On Sun, Nov 9, 2008 at 10:02 AM, Balazs Endresz <[EMAIL PROTECTED]>wrote: > > There's a ticket on this issue: http://dev.jquery.com/ticket/3023 > > On Nov 7, 11:48 pm, "Brian J. Cardiff" <[EMAIL PROTECTED]> wr

[jQuery] Re: Attribute selector with namespace

2008-11-09 Thread Balazs Endresz
There's a ticket on this issue: http://dev.jquery.com/ticket/3023 On Nov 7, 11:48 pm, "Brian J. Cardiff" <[EMAIL PROTECTED]> wrote: > thanks but that it isn't working in this scenario > > for: > Lorem > > the expression: > $('span').filter(function(){return $(this).attr("x:foo");}) > returns the

[jQuery] Re: Attribute selector with namespace

2008-11-07 Thread Max
I also took a stab at this and...had no luck. If it wasn't obvious, I think jQuery is getting tripped up on the : because of :'s association with filters. Not sure if there'll be an easy workaround. Max On Nov 7, 3:21 pm, MorningZ <[EMAIL PROTECTED]> wrote: > Hmmm.. interesting the second one

[jQuery] Re: Attribute selector with namespace

2008-11-07 Thread MorningZ
Hmmm.. interesting the second one there didn't work... Well, I tried (and even just worked up a little page trying some other things) good luck getting it rollin' On Nov 7, 5:48 pm, "Brian J. Cardiff" <[EMAIL PROTECTED]> wrote: > thanks but that it isn't working in this scenario > > for

[jQuery] Re: Attribute selector with namespace

2008-11-07 Thread Brian J. Cardiff
thanks but that it isn't working in this scenario for: Lorem the expression: $('span').filter(function(){return $(this).attr("x:foo");}) returns the span element but neither: $('[x:foo]') no: $('[x\\:foo]') find it any clue? Brian J. Cardiff bcardiff(?)gmail.com . On Fri, Nov 7, 2008 at 6:11

[jQuery] Re: Attribute selector with namespace

2008-11-07 Thread MorningZ
http://docs.jquery.com/Frequently_Asked_Questions#How_do_I_select_an_element_that_has_weird_characters_in_its_ID.3F On Nov 7, 2:06 pm, "Brian J. Cardiff" <[EMAIL PROTECTED]> wrote: > Is there a way to specify an AttributeFilter for attributes within a certain > namespace? I try some alternati

[jQuery] Re: Attribute selector with squared brackets

2008-10-21 Thread Ariel Flesler
Got a link to that part of the XHTML spec ? Ouch, Atribute --> Attribute. -- Ariel Flesler http://flesler.blogspot.com On Oct 21, 1:07 pm, ricardobeat <[EMAIL PROTECTED]> wrote: > Brackets are an invalid character in attributes, for XHTML served as > text/html, which I guess accounts for most o

[jQuery] Re: Attribute Selector

2008-02-25 Thread Erik Beeson
You have some oddly mismatched quotes, but otherwise, yes, that works. Here's a test done in firebug on jquery.com: >>> $('[EMAIL PROTECTED]:][href*=book]').each(function() { console.log(this.href );}); http://www.packtpub.com/jQuery/book/mid/1004077zztq0 http://www.packtpub.com/jQuery/book/mid/10

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

2008-01-12 Thread truent
Appears fixed as of 1.1.3 On Jan 10, 2:54 pm, truent <[EMAIL PROTECTED]> wrote: > Im seeing this too. > > This Works. > > $(document).ready( > > function() { > > $("input").each( > > function(i){ > alert('hi'); > > } > > ); > > This does not: > > $(document).ready( > > function() { > > $("input[i

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

2008-01-10 Thread truent
Im seeing this too. This Works. $(document).ready( function() { $("input").each( function(i){ alert('hi'); } ); This does not: $(document).ready( function() { $("input[id]").each( function(i){ alert('hi'); } ); php webpage snippit Categories Aid Year: * 2006-072007-082008-0

[jQuery] Re: Attribute Selector Docs Error?

2007-11-30 Thread kiwi
I have been following the docs and using a very recent version of jQuery. The docs don't mention the @ thing at all and I was wondering why my selector didn't work... Well obviously I'll upgrade and leave out the @ but it would have been handy to learn this just by reading the docs... > > The do

[jQuery] Re: Attribute Selector Docs Error?

2007-10-10 Thread Karl Swedberg
On Oct 10, 2007, at 2:54 PM, Chris Scott wrote: Karl Swedberg wrote: Hi Chris, The docs are correct as of jQuery version 1.2. Previous versions use @. Actually, you can get by using @ even in 1.2, but it's deprecated. Ever have one of those times when you *swore* you checked the versio

[jQuery] Re: Attribute Selector Docs Error?

2007-10-10 Thread Chris Scott
Karl Swedberg wrote: Hi Chris, The docs are correct as of jQuery version 1.2. Previous versions use @. Actually, you can get by using @ even in 1.2, but it's deprecated. Ever have one of those times when you *swore* you checked the version and *swore* you double-checked your code? This was

[jQuery] Re: Attribute Selector Docs Error?

2007-10-10 Thread Karl Swedberg
Hi Chris, The docs are correct as of jQuery version 1.2. Previous versions use @. Actually, you can get by using @ even in 1.2, but it's deprecated. --Karl _ Karl Swedberg www.englishrules.com www.learningjquery.com On Oct 10, 2007, at 1:44 PM, Chris Scott wrote: In the