Created
September 17, 2018 19:20
-
-
Save chrdesigner/ab8bcea179832ae6e560145559d09bbd to your computer and use it in GitHub Desktop.
Sub Menu + Filter TAG ~ Simple
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$('.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