Home »
MCQs »
jQuery MCQs
What will the following jQuery code do?
95. What will the following jQuery code do?
$(document).ready(function(){
$("pre").siblings();
});
- It will return all parent elements of <pre> element
- It will return all children elements of <pre> element
- It will return all sibling elements of <pre> element
- It will return all nonrelative elements of <pre> element
Answer: C) It will return all sibling elements of <pre> element
Explanation:
The above code will return all sibling elements of <pre> element.