jquery ajax submit always comes back as successful after validation
问题 I've created a form using jquery validate. The form validates correctly and as soon as every field has been validated as correct, it's meant to submit via ajax. This is where the problem appears. I've purposely set incorrect login details for the database so I'm expecting the ajax submit to return with an error, but it always comes back as successful (the debug() confirms that there is a problem connecting to the DB). I've used the correct credentials as well and it submits to the DB and also