Loading CSS file with JavaScript
Posted: 09 Nov 2015, 08:29
Hello
I use the following jQuery code to include a css file in html page, but it doesn't work.
How can I load a css file using javascript /jquery?
I use the following jQuery code to include a css file in html page, but it doesn't work.
Code: Select all
var fcss ='address/file.css';
jQuery('head').append('<style type="text/css">' + fcss + '</style>');