title: add javascript into a html page with jquery
body: <p>I want to add a javascript google ad but I can't insert the javascript into the div using jquery. I try to simulate my problem with this test, which is using some advice I found on stackoverflow , but it does not work.</p>
  
  <p>I want <code>&lt;script type='text/javascript'&gt;document.write('hello world');&lt;/script&gt;</code> to be inserted in the div, and "hello world" be displayed between the tag_1 and tag_2.</p>
  
  <p>Here is the code :</p>
  
  <pre><code>&lt;html&gt;
      &lt;head&gt;
        &lt;script type="text/javascript" src="jquery.js"&gt;&lt;/script&gt;
        &lt;script type="text/javascript"&gt;
           $(document).ready(function() {
           var str="&lt;script type='text/javascript'&gt;document.write('hello world');";
           str+="&lt;";
           str+="/script&gt;";
  
           $('#insert_here').append(str);
           });
        &lt;/script&gt;
      &lt;/head&gt;
      &lt;body&gt;
        tag_1&lt;br/&gt;
        &lt;div id="insert_here"&gt;
        &lt;/div&gt;
        tag_2&lt;br/&gt;
      &lt;/body&gt;
  &lt;/html&gt;
  </code></pre>
  
  <p>Tanks for your answers,</p>
  
  <p>Lucas</p>