you should be able to use the :after pseudo element
http://www.w3.org/TR/CSS2/selector.html#before-and-after
Date: Wed, 4 Mar 2009 16:10:03 +0100
Subject: [jQuery] next() question
From: aplennev...@gmail.com
To: jquery-en@googlegroups.com
Hello,
say i have this markup:
ul
thanks i got it to work, sort of.
$('#tabs img.albumImage').each(function(index)
{
var $img = $(this).data('tabindex', index);
$img.click(function()
{
next() finds the the unique next siblings for that element (in this
case their are none). You want the a that is the child of the
element's parent's next sibling, which takes longer to write in
English than in jQuery :)
$('a.tab-menu-item-selected').parent().next().children();
nb this assumes
http://docs.jquery.com/DOM/Traversing/Selectors#Not_supported
i seen the + operator seems to do something similar, it means an element
preceding.
Date: Wed, 4 Mar 2009 16:54:46 +0100
Subject: [jQuery] Re: next() question
From: aplennev...@gmail.com
To: jquery-en@googlegroups.com
thanks
seems to do something similar, it means an element
preceding.
Date: Wed, 4 Mar 2009 16:54:46 +0100
Subject: [jQuery] Re: next() question
From: aplennev...@gmail.com
To: jquery-en@googlegroups.com
thanks i got it to work, sort of.
$('#tabs img.albumImage').each(function(index
wow, clever, that does the trick !
$('ul.tab-menu
a.tab-menu-item-selected').parent().next().children('a.tab-menu-item').trigger('click.simplyTabs');
On Wed, Mar 4, 2009 at 4:58 PM, mkmanning michaell...@gmail.com wrote:
next() finds the the unique next siblings for that element (in this
4, 1:01 pm, Joseph Le Brech jlebr...@hotmail.com wrote:
http://docs.jquery.com/DOM/Traversing/Selectors#Not_supported
i seen the + operator seems to do something similar, it means an element
preceding.
Date: Wed, 4 Mar 2009 16:54:46 +0100
Subject: [jQuery] Re: next() question
From
7 matches
Mail list logo