Jquery show/hide


/ Published in: jQuery
Save to your folder(s)

clickMore is the button, .additionalInformation was the block of code that I was showing/hiding with the click


Copy this code and paste it in your HTML
  1. $(".clickMore").click(function(e) {
  2. e.preventDefault();
  3. $(".additionalInformation").toggle();
  4. });

Report this snippet


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.