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!