title: JavaScript - Value of div is greater than, so do something
body: <p>When price (value) in div <code>.highlight dd</code> is greater than <strong>750</strong>, insert element from <code>var</code> somewhere<br /></p>
  <pre><code>var CustomOrderText = &quot;&lt;div class='CustomOrderText'&gt;XY&lt;/div&gt;&quot;;
  </code></pre>
  <p>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.</p>
  <p>Edit: *I can´t remove &quot;HTML entity&quot; for space from the price, because I can't interfere in the generation process of the application that makes up HTML</p>
  <p><div class="snippet" data-lang="js" data-hide="false" data-console="true" data-babel="false">
  <div class="snippet-code">
  <pre class="snippet-code-js lang-js prettyprint-override"><code>var CustomOrderText = "&lt;div class='CustomOrderText'&gt;XY&lt;/div&gt;";
  $(CustomOrderText).insertBefore("div.target");</code></pre>
  <pre class="snippet-code-html lang-html prettyprint-override"><code>&lt;script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/3.3.1/jquery.min.js"&gt;&lt;/script&gt;
  &lt;dl class="sumPrice withVat highlight "&gt;
    &lt;dd&gt;779,70&amp;nbsp;Kč&lt;/dd&gt;
  &lt;/dl&gt;</code></pre>
  </div>
  </div>
  </p>