I am trying to
<!-- try to indent the codes for readability -->
<div class="row text-left" style="margin-left: 2em;">
Just use .html()
Description : When
.html()is used to set an element's content, any content that was in that element is completely replaced by the new content. Additionally, jQuery removes other constructs such as data and event handlers from child elements before replacing those elements with the new content.