Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- $(document).ready(function() {
- //on click of subservices list item toggle down the corresponding subservices item
- $(".subServices").find("li").hide().end() // Hide all other ULs
- .click(function(e) {
- if (this == e.target) { // if the handler element is where the event originated
- $(this).children('ul.subServicesList.subServiceItem').slideToggle('fast');
- }
- });
- });
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement