title: How to call a script by id using onclick?
body: <p>May be obvious but I tried searching and can't figure it out. I am using a third party tool which has a script. The script has an id, but the function within the script has no name. I have a javascript onclick function where all I want to do is call the script <em>by its id</em> from an onClick function.</p>
  
  <p>ie. script is </p>
  
  <pre><code>&lt;script id="feed" type="text/javascript"&gt;(function(){...}())&lt;/script&gt;
  </code></pre>
  
  <p>I need to call this script from </p>
  
  <pre><code>$('#searchBox').html("&lt;li onClick=\"$(\"#feed\");\"&gt;Click to contact us&lt;/li&gt;");
  </code></pre>
  
  <p>I tried to call the 'feed' script as above but no luck. In case it matters, the 'feed' script is in the body of the page and #searchBox is an auto-suggest box in a search field on that page. Will appreciate any help! Thanks!</p>