Advertisement
Guest User

Untitled

a guest
Jul 30th, 2015
205
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.38 KB | None | 0 0
  1. $(document).ready(function() {
  2.  
  3. //on click of subservices list item toggle down the corresponding subservices item
  4.  
  5. $(".subServices").find("li").hide().end() // Hide all other ULs
  6. .click(function(e) {
  7. if (this == e.target) { // if the handler element is where the event originated
  8. $(this).children('ul.subServicesList.subServiceItem').slideToggle('fast');
  9. }
  10. });
  11. });
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement