So I posted a question earlier about this and after a helpfull reponse, I've proceeded to attempt to try the code. I've not used JQuery before so this was a step into the beyond for me.
What I'm doing is using the below code to change the CSS of a website, almost like a template, however, when pressing the buttons, there's no change. I've included the JQuery script linked to Google. The code itself is pretty self explanitory, when you press the button, it should load a different stylesheet. I'm not sure if it's a permanant change or not, but just testing a the moment. Any help is appreciated!
<script type='text/javascript' src='http://ajax.googleapis.com/ajax/libs/jquery/1.6.4/jquery.min.js?ver=1.4.2'></script>
<script type="text/javascript">
$("button#grayscale").click(function() {
$("link[rel=stylesheet2]").attr({href : "css2.css"}); });
$("button#original").click(function() {
$("link[rel=stylesheet]").attr({href : "css.css"}); });
});
<button id="original">Original</button><br />
<button id="grayscale">Grayscale</button>
relattribute.