I have append the html content in particular div.
styleBasedProducts += "<div class='row image-full'><div class='col-md-12 home-title text-center'><div><span class='light'>Style Based</span><span class='heavier'> Products</span></div><p aria-hidden='true'></p></div></div>";
And also init the custom js in this ‘.image-full’ div.
How to do this?
2
Answers
You can try this:
Hope it helps.
You can try this.
https://www.w3schools.com/jquery/html_append.asp