[jQuery] Re: next() question

2009-03-04 Thread Joseph Le Brech
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

[jQuery] Re: next() question

2009-03-04 Thread Alexandre Plennevaux
thanks i got it to work, sort of. $('#tabs img.albumImage').each(function(index) { var $img = $(this).data('tabindex', index); $img.click(function() {

[jQuery] Re: next() question

2009-03-04 Thread mkmanning
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

[jQuery] Re: next() question

2009-03-04 Thread Joseph Le Brech
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

[jQuery] Re: next() question

2009-03-04 Thread ricardobeat
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

[jQuery] Re: next() question

2009-03-04 Thread Alexandre Plennevaux
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

[jQuery] Re: next() question

2009-03-04 Thread Alexandre Plennevaux
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