Explain .siblings() method in jquery?



Explain .siblings() method in jquery?..

Answer / 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

More jQuery Interview Questions

What is the difference between parent() and parents() methods in jQuery?

1 Answers  


What is method chaining in jquery and what are the advantages?

1 Answers  


How can jquery be used in conjunction with another javascript library that also uses $ for naming?

1 Answers  


How to create, read and delete cookies with jquery?

1 Answers  


Explain jquery filter?

1 Answers  


Explain the difference between size and length of jquery?

1 Answers  


How to write browser specific code using jQuery?

1 Answers  


What is the use of the animate() method in jquery?

1 Answers  


How can we add change font size using jquery?

1 Answers  


Difference between document.ready() and body onload()?

1 Answers  


Tell me can we have multiple document.ready() function on the same page? : jquery mobile

1 Answers  


Explain some features of jquery knockout?

1 Answers  


Categories