When price (value) in div .highlight dd
is greater than 750, insert element from var
somewhere
var CustomOrderText = "<div class='CustomOrderText'>XY</div>";
if there are additional questions, I will be happy to specify. Please do not delete this post (as before). This is a very important question for me.
Edit: *I can´t remove "HTML entity" for space from the price, because I can't interfere in the generation process of the application that makes up HTML
var CustomOrderText = "<div class='CustomOrderText'>XY</div>";
$(CustomOrderText).insertBefore("div.target");
<script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/3.3.1/jquery.min.js"></script>
<dl class="sumPrice withVat highlight ">
<dd>779,70 Kč</dd>
</dl>