I created a button that ADD CSS file to the page header. How Can I REMOVE this CSS from the header with the second click on the same button?
Thanks
<script>
$(document).ready(function(){
$("#myButton").click(function(){
var ls = document.createElement('link');
ls.rel="stylesheet";
ls.href="myCSSfile.css";
document.getElementsByTagName('head')[0].appendChild(ls);
});
});
</script>
<button id="myButton">Add / Remove</button>