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

matlab - How to equate a structure array to structure array -

c# - Operator '==' incompatible with operand types 'Guid' and 'Guid' using DynamicExpression.ParseLambda<T, bool> -