title: Executing script written inside the div when the div dynamically loads on to the page
body: <p>I have a div which looks like</p>
  
  <pre><code>&lt;div&gt;
  //Useful content
     &lt;script type="text/javascript"&gt;
          function(){
             //some useful code
          }
     &lt;/script&gt;
  &lt;/div&gt;
  </code></pre>
  
  <p>Now am getting this div as a response of an Ajax call and appending that into body. Now when the gets appended to body, the function inside the script tag should get executed. But not.. what is the problem here? </p>