title: How to execute a script by call his id
body: <p>from the html below I would like to execute a script by calling his id. So that when the script id is called the display fonction execute. Any other suggestion will be appreciate as long that the script only execute when the id is called. Thank you</p>
  
  <pre><code>&lt;!DOCTYPE html&gt;
  &lt;html&gt;
  &lt;head&gt;
  &lt;script src="https://ajax.googleapis.com/ajax/libs/jquery/3.4.1/jquery.min.js"&gt;&lt;/script&gt;
  &lt;/head&gt;
  &lt;body&gt;
  &lt;script&gt;
  $(document).ready(function(){
  //Here is where I would like to execute the script by calling his id.
  //Any other suggestion to make it work will be appreciate
  });
  &lt;/script&gt;
  
  &lt;script type="text/javascript" id="execute"&gt;
  $(document).ready(function(){
     display();
  });
  &lt;/script&gt;
  
  &lt;!--------------------- Footer --------------------------------&gt;
  &lt;script&gt;
  function display(){
   $("#show").css("display", "block");
  }
  &lt;/script&gt;
  &lt;p id="show" style="display:none"&gt;This is a paragraph with little content.&lt;/p&gt;
  &lt;/body&gt;
  &lt;/html&gt;
  </code></pre>