The forums ran from 2008-2020 and are now closed and viewable here as an archive.

Home Forums JavaScript Help me! Please! Multiple .Slidetoggle Re: Help me! Please! Multiple .Slidetoggle


You have to give each button and div involved a unique class or ID so so the js knows what to toggle. So it would look something like this:

//hide everything with class of Portfolio
//toggle specific portfolio when you click a specific button

You can set up an array (I think that’s what its called) at the start that says like “#button1″:”Portfolio1″,”#button2″:”Portfolio2”,etc. to avoid the repeating code.