title: how to call a jquery function on image click
body: <p>I've an image in my JSP page. I need to call the jquery function on click of that image. Please help me !!</p>
  
  <p>JSP page look like,</p>
  
  <pre><code>&lt;html&gt;
      &lt;body&gt;
          &lt;input type="image" id="closeAuction" value="Close Auction" align="right" src="images/close_auction.png" onclick="return endAuction();" disabled / &gt; 
      &lt;/body&gt;
  &lt;/html&gt;
  </code></pre>
  
  <p>My jquery function inside the script tag looks like,</p>
  
  <pre><code>&lt;script src="JS/jquery-1.3.2.min.js"&gt;
      $(document).ready(function() {     
          $('#closeAuction').click(function() {
              location.reload();     
          });    
      });
  &lt;/script&gt;
  </code></pre>
  
  <p>But the script doesn't work!! Could anyone help on calling a function on image click..</p>