Sub Menu + Filter TAG ~ Simple
$('.filterBlog').on('click', 'a', function(e){ | |
e.preventDefault(); | |
var hash = $(this).attr('href').replace(/^.*?(#|$)/,''); | |
$('.filter a.type').each(function (index, value) { | |
// console.log('filter' + index + ':' + $(this).attr('id')); | |
if(hash === $(this).attr('id')){ | |
$(this).get(0).click(); | |
// console.log('return current ID' + ' : ' + $(this).attr('id')); | |
} | |
}); | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment