Remove stylesheet To remove a stylesheet simply give it an id <link href=”cssFolder/sheet2.css” rel=”stylesheet” type=”text/css” id=”sheet2″> And insert the following script just before </body> tag Add stylesheet To Add a stylesheet insert the following script just before </body> tag Although i have used document ready in the snippets above i have used …
Read moreOften 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′);" …
Read more