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

linux - Using a Cron Job to check if my mod_wsgi / apache server is running and restart -

actionscript 3 - TweenLite does not work with object -

jQuery Ajax Render Fragments OR Whole Page -