<head> <link href="foo.css" rel="stylesheet" type="text/css" /> </head>
can I via jquery change the href of this link from foo.css to bar.css
foo.css
bar.css
$('link[href="foo.css"]').attr('href','bar.css');
have fun
2.1m questions
2.1m answers
60 comments
57.0k users