Forums

The forums ran from 2008-2020 and are now closed and viewable here as an archive.

Home Forums CSS How to make these actions flexible (Jquery) Re: How to make these actions flexible (Jquery)

#138599
Anonymous
Inactive

@CrocoDillon This is what i have exactly and it’s not working.

HTML

JQUERY
$(‘#gallery_section’).on(‘click’, ‘.gallery_content’, function() {
$(‘#image_container > img’).attr(‘src’, $(this).data(‘src’));
});

$(“.gallery_content”).click(function() {
$(“#image_container”).slideDown();
});

Sorry but i’m having trouble showing the code. I updates the site with your code so you can see it there.