Hello everyone, faced with such a necessity: a template HTML block is being loaded.
var addItemBlock = $('<span>').load("src/featureAddedStructure.html .featureAdded");
The block has the following structure:
<div class="featureAdded fade in"> <button class="close" data-dismiss="modal" style="padding-right:3px">x</button> <div style="background: " class="featureAddedImg"></div> <div class="featureAddedName"> <p>...</p> </div> </div>
It is necessary for me before I insert this block on the page to add the values stored in the param1 and param2 variables. I can not understand how this can be done before adding this block to the page.