jquery submit form not calling button click event at server side
<p>i am using asp.net and following code to submit form  on enter key press it is working but only refreshing same page and not calling button click event in server side code and without saving data it is comming back to same form, even without the jquery code again same thing happening don't know why but in some forms enter key press working fine and saving data without even following jquery code.</p>

<pre><code>$(function() {
    $("form input").keypress(function (e) {
        if ((e.which &amp;&amp; e.which == 13) || (e.keyCode &amp;&amp; e.keyCode == 13)) {
        alert('Alert is Working but data is not being Save Only Refresh');
            $('button[type=submit].default').click();
            return false;
        } else {
            return true;
        }
    });
});
</code></pre>
