[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

[jQuery] Re: .get(0) fails in 1.2.5

2008-05-21 Thread Patrick McElhaney
On Wed, May 21, 2008 at 1:53 PM, jstrebel <[EMAIL PROTECTED]> wrote: > When using jquery 1.2.1 ... Have you tried 1.2.3? Does it to work if you replace that line with a direct DOM call? var task = document.getElementById("task_"+checklist_id+"_"+task_id) Patrick -- Patrick McElhaney 704.560

[jQuery] Re: .get(0) fails in 1.2.5

2008-05-21 Thread Hamish Campbell
Can't replicate here - are you SURE the id exists? On May 22, 9:56 am, "Brandon Aaron" <[EMAIL PROTECTED]> wrote: > This is working for me. Must be a little more deeply rooted. Could you try > and narrow things down? Create a simplified test-case that we could all > explore? > > -- > Brandon Aaro

[jQuery] Re: .get(0) fails in 1.2.5

2008-05-21 Thread Brandon Aaron
This is working for me. Must be a little more deeply rooted. Could you try and narrow things down? Create a simplified test-case that we could all explore? -- Brandon Aaron On Wed, May 21, 2008 at 12:53 PM, jstrebel <[EMAIL PROTECTED]> wrote: > > Hi there, > > Noob.. and first post. Thanks for h

[jQuery] Re: get(0)

2007-10-22 Thread Dave Methvin
> node.get(0).onreadystatechange = function () { It's setting an event handler for a readystatechange on the first DOM node in a jQuery object. If the element only has one DOM node, you should be able to do it this way as well using jQuery's .bind() method: node.bind("readystatechange", function

[jQuery] Re: get(0)

2007-10-22 Thread John Resig
You've got me! What does that do? Where is it from? --John On 10/22/07, Thierry <[EMAIL PROTECTED]> wrote: > > hey, im new to jquery, and im wondering what this does: > > this.node.get(this[0]).onreadystatechange = function () > > somehow, google groups missed my first post on this > >