jquery validation submit - with ajax submit - click function
问题 I'm using a click function on a link to submit the form via ajax, and if the server returns with an error, a server side error is displayed. With this method, the enter key doesn't work in the form, and I think there's probably an easier and more correct way to do this with jquery validation's submit handler. here's my code so far... function loginSubmit(){ $.ajax({ url: loginFormURL, type: 'POST', /** contentType: "application/json;", **/ dataType:"text json", /** async: true, **/ data:$('