This should work:
var style = $('<style>.class { background-color: blue; }</style>');
$('html > head').append(style);
More Related Contents:
- How to display an chage photo option on mouse hover similar to linkedin using Javascript? [closed]
- Input type="text" with select functionality after clicking on Input type="text"
- How to dectect objects' overlaping situations in javascirpt? [closed]
- jQuery .animate function not responding properly
- How to force browser to show image 3 inches wide?
- Reloading a single div in an html page [closed]
- How to invoke animation when redirection in jsf?
- fixing slider on my website [closed]
- Only detect click event on pseudo-element
- Can I use HTML tags in the options for select elements? [duplicate]
- Select all elements that have a specific CSS, using jQuery
- How to build simple jQuery image slider with sliding or opacity effect?
- How can I disable a browser or element scrollbar, but still allow scrolling with wheel or arrow keys?
- Hide scrollbar while still being able to scroll with mouse/keyboard [duplicate]
- Border Radius for IE8
- make html text input field grow as I type?
- jQuery Drag/Resize with CSS Transform Scale
- Creating a select box with a search option
- Trees in Twitter Bootstrap [closed]
- Fill available spaces between labels with dots or hyphens
- How to resize Twitter Bootstrap modal dynamically based on the content
- Uncaught TypeError: Cannot read property ‘top’ of undefined
- iphone/ipad triggering unexpected resize events
- Extracting text from a contentEditable div
- Prevent iOS bounce without disabling scroll ability
- How do I make an area unclickable with CSS?
- How can I dynamically highlight strings on a web page?
- Detect if dropdown navigation would go off screen and reposition it
- Iframe inherit from parent
- Bootstrap Dropdown menu is not working