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 :
there are better ways to do what you're asking but if you really want to remove and add a remote stylesheet with jquery you can do this:
$('link[href^=old_css_file.css]').attr('href', '/path_to_new_css/file.css');
read more about the ^= attribute selector and the attr() function