f the element via URL with the URL param plugin:
> (It works, if I do an alert it returns the right stuff)
> var target = $.url.param("target");
> alert($("#"+target).parent().attr('id'));
>
> This alerts nothing !!
>
> --- On *Fri, 11/27/09, Michel B
).attr('id'));
This alerts nothing !!
--- On Fri, 11/27/09, Michel Belleville wrote:
From: Michel Belleville
Subject: Re: [jQuery] Problem traversing up list
To: jquery-en@googlegroups.com
Date: Friday, November 27, 2009, 11:10 AM
You don't need to use .parentNode() (vanilla DOM)
You don't need to use .parentNode() (vanilla DOM) but .parent() (jQuery
flavor).
Then you can access any attribute using .attr().
So instead try : $('#item1-1').parent().attr('id')
This should "tadaaa".
Michel Belleville
2009/11/27 ximo wallas
> Hello there, after too much sarching I have al
Hello there, after too much sarching I have almost give it up with the
following.
I have a list with another list nested:
Item 1
Item 1 - 1
Item 1 - 2
Let's say I know the ID of "item1-2" or "item1-1" how can I get
I am making a slideshow kind of thing on a website and im having some
trouble going back and forth from element to element this is the code
$(".next").click(function () {
$(this).closest(".ego-text").hide(2500).queue(function () {
$(this).next(".ego-text").show(2500);
});
});
$(".ba
hi i am attempting to make a small quiz and am having a setback... i
was hoping someone could provide a hint or solution.
heres the html:
What is apple in french?
Pomme de
6 matches
Mail list logo