[jQuery] Re: data function

2009-09-20 Thread Mike McNally
No, that's not what I meant. I mean this: add an "id" or "class" value to your elements **in order to identify them in the console.log() output**. Keep using the "data()" function for storing values. Again, data() does really work; I use it all over the place and I've never had any problems wi

[jQuery] Re: data function

2009-09-20 Thread cafaro
I'll just make an array to store the data for each element. On Sep 20, 8:30 pm, cafaro wrote: > I already thought about adding it to an ID/class values, but the > problem is that i need to pass a DOM object. > > On Sep 20, 4:28 pm, cafaro wrote: > > > Yes, and it returns true. > > > On Sep 19,

[jQuery] Re: data function

2009-09-20 Thread cafaro
I already thought about adding it to an ID/class values, but the problem is that i need to pass a DOM object. On Sep 20, 4:28 pm, cafaro wrote: > Yes, and it returns true. > > On Sep 19, 6:47 pm, Mike McNally wrote: > > > Have you put a console.log() call in your mouseover handler? > > > On Sat

[jQuery] Re: data function

2009-09-20 Thread cafaro
Yes, and it returns true. On Sep 19, 6:47 pm, Mike McNally wrote: > Have you put a console.log() call in your mouseover handler? > > > > On Sat, Sep 19, 2009 at 10:03 AM, cafaro wrote: > > > Hi, > > > I'm trying to get the data() function working, but no success so far. > > Here's the code I've

[jQuery] Re: data function

2009-09-19 Thread Mike McNally
Have you put a console.log() call in your mouseover handler? On Sat, Sep 19, 2009 at 10:03 AM, cafaro wrote: > > Hi, > > I'm trying to get the data() function working, but no success so far. > Here's the code I've come up with: > > //$("a[href*='user.php?nick=']").data("test", true); > > $("a[hr