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