Reputation: 5075
I have form that takes input and i have submit button and reset input type... i have issue with submit button tag in IE 7, all rest of browser and IE version >7 working fine...
here is my code ...
<form id="form_searchProperty" action="../jQuery Search Engine/searchPage01.html">
//input tag for form value
<div class="submitCriteria">
<button class="button_submit" >Search</button>
<input class="button_reset" type="reset" />
</div>
</form>
jQuery function
$("#form_searchProperty").submit(function () {
var givenCriteria = $(this).serializeArray();
});
Upvotes: 0
Views: 1156
Reputation: 2470
Use the type submit,
<button class="button_submit" type='submit' >Search</button>
Upvotes: 5
Reputation: 324650
<button>
does NOT submit forms unless you tell it to - at least, it's not supposed to. It does in some browsers, for some annoying reason.
Why not use an actual submit button?
<input type="submit" class="button_submit" value="Search" />
Upvotes: -1