I'm trying to make a show/hide button and I can't manage to get it working. What I want to do is when the user clicks the button, some content will appear. Also, it has to be possible to hide the content if the show/hide button is pressed again.
I came up wiith this:
<center><input type='button' id='hideshow' class='myButton' value='Show/Hide'></center>
<div id="content1" style="display: none;">
<!-- some content -->
I read it over and over again, but I still can't figure it out. What did I do wrong?