Jump to content

jQuery for Audio Bar and Hide/Show Section

Recommended Posts

Site URL: http://musicwithmichal.squarespace.com/cats-and-dogs

I am trying to hide the audio bar section and then using jQuery make it appear and play when you click "Play Song".
 
This is my code:
 
<script>
$("div.play").click(function(){
  $("section[data-section-id="627ad5fa2e230d27b113ece9"]").css('display','block');
});

</script>

 

I would also like it to start playing the song when that div.play is clicked.

 

Can someone please help?

Link to comment
  • Replies 1
  • Views 120
  • Created
  • Last Reply

Top Posters In This Topic

Top Posters In This Topic

Create an account or sign in to comment

You need to be a member in order to leave a comment

×
×
  • Create New...

Squarespace Webinars

Free online sessions where you’ll learn the basics and refine your Squarespace skills.

Hire a Designer

Stand out online with the help of an experienced designer or developer.