Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

jquery switch css style sheets

$('#grayscale').click(function (){
   $('link[href="style1.css"]').attr('href','style2.css');
});
$('#original').click(function (){
   $('link[href="style2.css"]').attr('href','style1.css');
});
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #jquery #switch #css #style #sheets
ADD COMMENT
Topic
Name
8+3 =