title: Adding an external <script> with data parameters after ajax request
body: <p>I need to add a &lt; script > tag with external src and with data-*="" parameters inside a &lt; form >. It is ok if you just add it in page. But if I do it after an ajax request, script reports it can't find data- parameters, and it is outside needed html elements.</p>
  
  <p>I read that jQuery on .append() somehow rearranges &lt; script > tags, and put them in the end (outside needed elements), and looses data- attributes.</p>
  
  <p>Is there any other way to append a script after ajax request with needed data- parameters?</p>
  
  <pre><code>I tried 
  $('&lt;script&gt;').attr(/*all data params*/)
  </code></pre>
  
  <p>but it does not work.
  Please help</p>