title: start image loader icon when pressing a link inside PHP code
body: <p>I was trying to use an image loader when the user pressing the link. Could not work. Any idea how to do it?</p>
  
  <p>I use jquery and php:</p>
  
  <pre><code>&lt;script&gt;
      $("#startlink").click(function(){
         $(".loading").show();
      }
  &lt;/script&gt;
  
  echo"&lt;a href='?value=$value'    id='loading'    &gt;Start&lt;/a&gt;  "; 
  echo" &lt;img src='img/loader.gif' class='loading;' style='display:none;' /&gt; ";
  </code></pre>