Home »
MCQs »
jQuery MCQs
What is the use of jQuery method toggle()?
38. What is the use of jQuery method toggle()?
- To hide shown elements and to show hidden elements
- To remove current element
- To shift current element at the previous position
- 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.