Match Incremented Class With Incremented Ids From Different Loops [jQuery / Wordpress]
After hours of research and try and errors I start my first question here. If it can be done with wordpress syntax even better. Otherwise I think I'm near to the solution. I want a
Solution 1:
If i'm understanding correctly this might help
$('.gallery li').on('click', function(e) {
e.preventDefault();
var className = $(this).find('a').attr('class');
var imgContent = $('#'+className).html();
});
Post a Comment for "Match Incremented Class With Incremented Ids From Different Loops [jQuery / Wordpress]"