This article mainly introduces the closed FAQ for jQuery implementation by default. It involves the usage skills of slideUp and slideDown in jQuery and has some reference value, for more information about jQuery implementation, see the following example. 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:
JQuery usage