This example describes the jquery implementation by default a closed FAQ expansion effect menu. Share to everyone for your reference. Specifically as follows:
This is a closed FAQ display menu, which focuses on the use of jquery.
Boolean value is (String expr) checks the currently selected collection of elements with an expression that returns true if at least one of the elements conforms to the given expression. Answer.is (': visible ') refers to the visible answer element. Call Answer.slideup () if visible, and make it hidden. else is an invisible element called Answer.slidedown (), which is displayed. Similar to the answer.is (': A ') answer.is (': Last '), similar to the CSS pseudo-class a:hover
The screenshot of 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 screenshot of 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 your jquery programming.