What will the following jQuery code do?

95. What will the following jQuery code do?

$(document).ready(function(){
  $("pre").siblings();
});
  1. It will return all parent elements of <pre> element
  2. It will return all children elements of <pre> element
  3. It will return all sibling elements of <pre> element
  4. 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.

Comments and Discussions!

Load comments ↻






Copyright © 2024 www.includehelp.com. All rights reserved.