Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

what is the plus(+) in jquery selector

I see this selector

       $( 'a + .firstSection a' ).live( 'click', function(){

in my js file. What is the purpose of the + sign here?

like image 484
Do Good Avatar asked Jun 21 '12 16:06

Do Good


1 Answers

From jquery doc:

Selects all next elements matching "next" that are immediately preceded by a sibling "prev". A selector to match the element that is next to the first selector.

Read more about prev + next selector

like image 180
thecodeparadox Avatar answered Sep 30 '22 16:09

thecodeparadox