I am trying to create multiple div element in Jquery. I had tried below solutions.
create html with jquery
Creating a div element in jQuery
I need to create below html element in jquery
<div class="r-c-grid ">
<div class="r-c-imgmask">
<img src="http://example.com/images/path.jpg">
</div>
<div class="r-c-gradient"></div>
<h3 class="r-c-grid-title"><a href="http://example.com/link.php">Post Title</a></h3>
</div>
I am able to do this by above solutions but it is more complicated.Can anyone suggest me is there any better way to do this in latest jquery.