Jquery pop up is showing all children instead of one
Hi, I wonder if anyone can help?
I am displaying some advanced custom fields on my wordpress site. When the title button of each post is clicked, I need the content to appear in a pop up box. I have managed to code it, my issue is that ALL boxes are popping up when any title button is clicked, instead of just the single pop up box that is related. I did try wordpress forums as this is a wordpress site, but the button to add a new question in the forum isn't working :( I wonder if anyone can help me on here?
The site is
http://localhost/Morzine/?page_id=4
The buttons are 'the chalet', and 'the apartment'.
My jquery code is
$('a.acm').click(function () {
$(this).parent().find('.accomodation').css('display', 'block');
});
Hope someone can help, thanks!
Kelly