How can I toggle between multiple .css with jquery? -
essentially trying figure out how expand amount of things can toggle between single button dynamically. able toggle between 2 of these
<button type="button" id="spacebutton" onclick="$('#galaxy').toggle()">brellas</button> which toggle #galaxy, , other background iframe video inside.
basically, want able toggle between two, , 3 other css files, couldn't find suitable on google.
i'm new programming, please gentle.
frankly, can add/remove links external css files, in reality, can toggle, well, everything. if wanted to.
edited add example:
given link such this:
<link id="csslink" href="my.css" type="text/css" rel="stylesheet"> the jquery:
$('head') .find('#csslink') // find css link .remove() // remove .end() // return $('head') object .append('<link id="csslink" href="mynew.css" type="text/css" rel="stylesheet">');
Comments
Post a Comment