Often you want to hide or show an image or one or more tags on your page and using this reusable script you can do just that.No code to edit and it also changes (Toggles) the button value. You just have to insert 4 variables whenever you want to call the script
<input type="button" onclick="toggleItem(’1′,this.id,’3′,’4′);" value="Show" id="bt1" />
- id of item to toggle (hide/show)
- this.id (id of button you can leave it as it is)
- default value of button (To match button value)
- Value when button is toggled

