K.Z
K.Z

Reputation: 5075

Button tag not working in IE 7

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

Answers (2)

Vignesh Paramasivam
Vignesh Paramasivam

Reputation: 2470

Use the type submit,

<button class="button_submit" type='submit' >Search</button>

Upvotes: 5

Niet the Dark Absol
Niet the Dark Absol

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

Related Questions