I've got this div in my HTML that I want to add dynamically, but it's a lot of HTML to put inside a JavaScript string I think, is there any other, or better ways to do it?
I am programming in MVC if anyone know some tricks there
My HTML
<div class="container">
<div class="panel panel-info col-lg-10 col-lg-offset-1 added-panel">
<div class="panel-heading">Random1 - Random2</div>
<div class="panel-body">
<div>Random3</div>
</div>
</div>
</div>
My jQuery
$('#mybtn').click(function () {
$('#mydiv').append('<div class="container"><div class="panel panel-info col-lg-10 col-lg-offset-1 added-panel"><div class="panel-heading">Random1 - Random2</div><div class="panel-body"><div>Random3</div></div></div></div>');
});