How can I change a stylesheet using jquery in div tag on html? or what is the jquery code for changing stylesheets?
in javascript, we use the below code :
For updating full theme it's best to load a new CSS file. Easiest done on the server side but if you insist on loading dynamically:
// Don't know jQuery, this is regular JS:
var newCss = document.createElement('link');
newCss.rel = 'stylesheet';
newCss.type = 'text/css';
newCss.href = '/path/to/new/cssfile.css';
document.body.appendChild(newCss);