I would like to have multiple lines when I use jQuery’s html method, like this:
$("#someID").html("
<h1>Headline 1</h1>
<h1>Headline 2</h1>
");
However this snippet of code does not work. Is there a way to use multiple lines when using jQuery’s html method?
You could use string concatenation to join the new lines. Its clean too.