adspace


Explain .siblings() method in jquery?

Answer Posted / Kushal Sharda

.siblings() method returns the elements that share the same parent as the current set of matched elements. It filters out the current elements themselves.nFor example: $(this).siblings('.otherClass') will select all siblings of the current element with the class 'otherClass'.

Is This Answer Correct ?    0 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is the minimum setup needed to start using jquery.

939


How to always reference latest version of jquery?

873


How to validate email using jquery?

974


Do you have plans for a new jquery plug-in or something else we should look out for? Where to from here for the imgpreview plugin?

864


How do you install/use jquery in a project. What is the minimum setup needed to start using jquery.

999


How can jquery library be added to pages?

952