Infinite loop of form submit using jquery event
问题 The code is stuck in a loop when I try to catch a form submission. The purpose is to replace a value of the form before it goes out. $('form').submit(function(e){ e.preventDefault(); $.ajax({ type: "POST", url: 'convert.asp', data: $('form').serialize(), success: function(response){ $('input[name="field1"]').val(response); $('form').submit(); } }); return false; }); Does anyone have any ideas? UPDATE: I originally had it bound to a button click event and it was working but I wanted to