Created
February 18, 2014 14:20
-
-
Save chrisjhoughton/9071918 to your computer and use it in GitHub Desktop.
Add CSS styles to the <head> using jQuery
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var styleText = "body { background: black; }"; | |
$( "<style>" + styleText + "</style>" ).appendTo( "head" ); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment