Jquery – .slidetoggle()

Remember when using the .slidetoggle feature of jquery that you need to set the element that you wish to start hidden e.g. a div called ‘map’ to display:none or else the div will start visible.

Also if using multiple toggles remember to give each a unique set of names (unless you know how to properly code and this can be done in a cleaner fashion.

Dear future self, this will save you 12hrs of head scratching.

Leave a Reply

Your email address will not be published.