internet explorer - Why does enter submit a form differently than clicking submit in IE 7? -


in ie 7 zip code search form on page reacts differently when clicks submit vs pressing enter. works correctly when sumbmit clicked , incorrectly when enter pressed.
http://getridofit.com

<form name="zip" action="<?php bloginfo('url'); ?>" method="get"> <input type="text" id="zipper" name="locations" size="5" maxlength="5" class="junk-input" onsubmit="return checkform()" /> <input type="submit" value="" name="schedule" src="/wp-content/uploads/remove-my-junk.png"  align="center" class="junk-button" style="background: #f67a3e url(/wp-content/uploads/remove-my-junk.png); border: none; width: 201px; height: 45px;"/> </form> 

the correct result zip search of 85718 looks this: http://getridofit.com/l/85718/?schedule pressing enter produces result this: http://getridofit.com/l/85718/

because button wasnt clicked in order submit form. if dont click button input @name[schedule] isnt sent. if button input has focus when enter pressed think send along properly... might jsut want make schedule hidden input.


Comments

Popular posts from this blog

jQuery Ajax Render Fragments OR Whole Page -

javascript - Iterate over array and calculate average values of array-parts -

java - Simple Command Line calculator -