21
Given these javascript variables:
var div_id = "my_div";
var h1_class = "my_header";
var a_class = "my_a_class";
var a_string = "teststring";
and this page element:
<div id="container"></div>
I want to build this html structure with jQuery:
<div id="container">
<div id="my_div">
<h1 class="my_header">
<a href="/test/" class="my_a_class">teststring</a>
</h1>
</div>
</div>
What is the best and most readable way to chain the commands here?