What is the use of jQuery method toggle()?

38. What is the use of jQuery method toggle()?

  1. To hide shown elements and to show hidden elements
  2. To remove current element
  3. To shift current element at the previous position
  4. All of the above

Answer: A) To hide shown elements and to show hidden elements

Explanation:

The toggle() method is used to hide the shown elements and to show the hidden elements.

Comments and Discussions!

Load comments ↻






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