I'll just make an array to store the data for each element.

On Sep 20, 8:30 pm, cafaro <tvdbu...@gmail.com> 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 <tvdbu...@gmail.com> wrote:
>
> > Yes, and it returns true.
>
> > On Sep 19, 6:47 pm, Mike McNally <emmecin...@gmail.com> wrote:
>
> > > Have you put a console.log() call in your mouseover handler?
>
> > > On Sat, Sep 19, 2009 at 10:03 AM, cafaro <tvdbu...@gmail.com> 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[href*='user.php?nick=']").mouseover(function() {
> > > >        $(this).data("test", true);
> > > > });
>
> > > > $("a[href*='user.php?nick=']").mouseout(function() {
> > > >        console.log($(this).data("test"));
> > > > });
>
> > > > After moving my cursor out of one of the selected anchor elements, i
> > > > get undefined, instead of true, in my Firebug console. Any ideas?
>
> > > --
> > > Turtle, turtle, on the ground,
> > > Pink and shiny, turn around.

Reply via email to