I have this,
<script type="text/javascript">
...
$("#img-clck").click(codeAddress);
...
</script>
<input type="image" src="btn.png" alt="" id="img-clck" />
<input type="text" name="Addr" id="Addr" value="" onclick ="document.getElementById('Addr').value='';"/>
While I can perform the function call by clicking on the image button, the problem is that I need the pressing “Enter” too. I have tried to include the <form> before the <input ...> but that lead me to GET.
How to I do to get the pressing “Enter”??
Thanks in advance.
You have to find the
keypressevent happening inwindow.Something like this:
Good luck.