Home > Web Front-end > JS Tutorial > Menu click event example code

Menu click event example code

零下一度
Release: 2017-06-26 11:30:54
Original
1795 people have browsed it

The monitored events are specific, so there will be no linkage



  • La La La< ;/h3>
                                                                                   ="five">LALALA


  •                                                ;

  • Oh oh oh


    ;
                                                                                                                                                    ="five">La La La

  •                                                                                                                  

    Main code content

    <script> <p> $('.two>a').click(function () {</p> $(this).parent().addClass('active').siblings().removeClass('active');<p><br> var three = $(this).parent().find('ul');<br> if (three.css('display') == 'none') {<br> three.show ();<br>     }else {<br>               three.hide();<br>               }); # $(this).addClass('activee').siblings().removeClass('activee');<br> })<br> </script>


    The above is the detailed content of Menu click event example code. For more information, please follow other related articles on the PHP Chinese website!

Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template