Hi
I have a FORM that I want to use an IMG, instead of an input button, to submit the form.
The code:
<form>
<input class="form_grey" value="Enter in City or Zipcode" type="text" id="city-field" name="city" onfocus="this.value='';" />
<a href="javascript:document.form.submit()"><img src="/images/btn.png" /></a>
</form>
When I type in the input field and Press ENTER (on my keyboard), the form submits correctly. BUT, if I type in the input field and click my image submit button, nothing happens.
Any ideas as to why my Javascript image form submit doesn't work?