Hi,
I have the following HTML code:
<form>
<label for="searchtxt">Find a Question...</label>
<input type="text" name="searchtxt" id="searchtxt" maxlength="200" size="92" />
<input type="submit" id="searchsbmt" name="searchsbmt" value="Search" onclick="return getquestions(0,5);" />
</form>
the function getquestions is sending some variables via ajax and returning to populate a div. when it finishes, it returns false.
This works as intended in firefox when click on hitting enter, but in ie7 it submits the form on hitting enter.
I have other forms like this working as intended in ie7 so am really confused as to what i've done wrong!
Why won't it return false on hitting enter in ie7?
Any suggestions, thanks in advance :)