Adding style to my website using the .html()
method is something I'm looking to do.
I've attempted this:
Using jQuery:
if ($('#checkbox:checked') > 0) {
$("body").html("
<style>
.selected{
background-image: url('http://www.website.com');
}
</style>
");
}
However, it's resulting in an error message:
SyntaxError: unterminated string literal