How I can add click function in this code
How I can add click function in this code, so that in addition to open the
submenu also call the filter Links Important?
$('#dl-menu a').ready(function(e) {
var selector = $(this).attr('data-filter');
$container.isotope({ filter: selector });
e.preventDefault();
e.stopPropagation();
});
$('.dl-submenu a').click(function(e) {
var selector = $(this).attr('data-filter');
$container.isotope({ filter: selector });
e.preventDefault();
e.stopPropagation();
});
No comments:
Post a Comment