​Hello! My name is Alex Smith, I'm a freelance web developer specialising in Squarespace. Check out the blog for some coding tips and contact me if you would like to discuss a project. I can be found on the dev forums as Alex.

This is a script I created that shows/hides content when you click a button, on page load the script hides the targeted element and generates the button for you. It uses YUI (YAHOO! User Interface 2), which is already loaded with Squarespace (so no need to load another library e.g. jQuery or Prototype). It is designed to be extremely simple to set up! (Note: the script includes the YUI 2 button module which is not loaded by Squarespace)

​Hello! My name is Alex Smith, I'm a freelance web developer specialising in Squarespace. Check out the blog for some coding tips and contact me if you would like to discuss a project. I can be found on the dev forums as Alex.