what I want to do is to send a form via jquery ajax to my symfony2-webapp. What happens on the server is that either the server responses the form with validation errors or a success message.

How can I handle this two different results in jquery?