If a user checks a form checkbox I want to create a new div. Dynamic data is loaded from ajax and php. I am asking how to create it with JS or jQuery. A simplified version will look something like
<div id="ajaxSRC1" class="CLASS">
<a href="javascript:void(0)" onmouseover="return myFunction('ajaxSRC5', 'ajaxSRC6')">
<img src="ajaxSRC2" width="ajaxSRC3" height="ajaxSRC4" alt="..." />
</a>
</div>
Try this:
Inside the checkbox click handler: