Add a CSS link to your document head with jQuery

Found this little snippet for adding a css file <link> tag to the head of your page with jQuery.

Presumably you could use it for other things too.

$(document).ready(function() {
    $('head', document).append('<link rel="stylesheet" type="text/css"
media="screen" href="css/mysite.css" />');
   });

Like CFHtmlHead, for javascript!

Comments (Comment Moderation is enabled. Your comment will not appear until approved.)
blogcfc 5.9.1.002 by raymond camden
contact michael evangelista