css - removing stylesheet link with MooTools -


i need have stylesheet link removed html head when user clicks link. found following, need mootools equivalent.

to remove stylesheet give id

<link href="cssfolder/sheet2.css" rel="stylesheet" type="text/css" id="sheet2"> 

and insert following script before tag

<script type="text/javascript"> $(document).ready(function () { jquery('#sheet2').remove(); }); </script> 

window.addevent('domready', function() {     $('sheet2').destroy(); }); 

information:


Comments

Popular posts from this blog

linux - xterm copying to CLIPBOARD using copy-selection causes automatic updating of CLIPBOARD upon mouse selection -

qt - Errors in generated MOC files for QT5 from cmake -