Making more menu dropdowns?


#1

I was trying to make more menudropdowns instead of just the more tab. How would you define another dropdown class? and at the same time use make quarry differentiate between the different menu tabs


#2

Hey Joel,

You could keep the two classes the same, but inside each's own parent element, then use something like:

$('.dropdown-toggle').click(function() {
  $(this).closest('.dropdown-menu').toggle();
});

.closest() does exactly what it sounds like - it finds the closest element with the selector you pass in :slightly_smiling: