JQuery implements closed FAQ by default to show the effect menu, and jqueryfaq
This example describes how to use jQuery to implement closed by default. Share it with you for your reference. The details are as follows:
This is a closed FAQ expansion menu by default. It mainly introduces the usage of jQuery.
Boolean is (String expr) uses an expression to check the selected element set. If at least one element matches the given expression, true is returned. Answer. is (': visable') refers to the visible answer element. If it is visible, call answer. slideUp (); to hide it. Else is an invisible element that calls answer. slideDown (); to display it. Similar works include answer. is (': first') answer. is (': la') and so on. It is similar to the pseudo Class a: hover of CSS.
The running effect is as follows:
The Online Demo address is as follows:
Http://demo.jb51.net/js/2015/jquery-close-show-faq-menu-codes/
The running effect is as follows:
<! DOCTYPE html PUBLIC "-// W3C // dtd xhtml 1.0 Transitional // EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
I hope this article will help you with jQuery programming.