Hi all,

I'm using the jquery form plugin from malsup.com, and I'm confused
about validation.

I need to validate the form fields in the php file specified in the
action of the form.

I realise I can use the success: function() to update a div (I
actually want to perform animation on a div elsewhere on the page)
when successful, but if the form is incorrectly completed, how do I
return a 'failed' code from the php file (so that the animation
doesn't happen)?

(It seems to me as though the form always returns 'successful' code ?)

Thanks,

Matt

Reply via email to