[jQuery] Re: $.get(0) is causing trouble

2008-07-17 Thread Karl Swedberg
On Jul 17, 2008, at 3:59 PM, Carl Von Stetten wrote: jquertil, Try: $all[0].css('color','#339900'); or $all.eq(0).css('color','#339900'); As Alexsandro pointed out in his response, .get(0) returns the actual DOM element, not a jQuery object, so you can't use jQuery functions (like ".css") o

[jQuery] Re: $.get(0) is causing trouble

2008-07-17 Thread Carl Von Stetten
jquertil, Try: $all[0].css('color','#339900'); or $all.eq(0).css('color','#339900'); As Alexsandro pointed out in his response, .get(0) returns the actual DOM element, not a jQuery object, so you can't use jQuery functions (like ".css") on it. Carl jquertil wrote: > $all = $('

[jQuery] Re: $.get(0) is causing trouble

2008-07-17 Thread Alexsandro_xpt
Are already tried remove .get(0)? Cos .get(0) return the element its self. and element dont have css function, only jQuery has. On 17 jul, 16:07, jquertil <[EMAIL PROTECTED]> wrote: >                 $all = $('.listing > .myDivs'); >                 $all.get(0).css('color','#339900'); > > why