Hi there,
I’m trying to get jQuery show/hide to work. I have multiple instances of the HTML code below on a page. Only the first one is working and I have no idea why. Can someone please help.
CODE:
<script>
jQuery( document ).ready( function( $ ) {
$('.show').click(function() {
$('.booking-form').toggle("slide");
});
});
</script>
HTML:
<div class="show align-link link">Display Hidden Content</div>
<div class="booking-form">Content Goes Here</div>
CSS:
.booking-form { display: none; }
Thanks in advance!