So, unlike other questions about this, I want to use this code from here: How do I switch my CSS stylesheet using jQuery?
I need to switch between multiple css styles in
Yes, it will work. Whether is either in the
or
.
Here's a basic sample,
var isToggled = false;
$(function() {
$('#btnSwitchCss').on('click', function() {
isToggled = !isToggled;
if (isToggled) {
$("link[href='https://maxcdn.bootstrapcdn.com/bootstrap/3.3.6/css/bootstrap.min.css']").attr('href', '../');
} else {
$("link[href='../']").attr('href', 'https://maxcdn.bootstrapcdn.com/bootstrap/3.3.6/css/bootstrap.min.css');
}
})
});
Switch CSS Style