I am using two plugins jquery form and jquery validate. The form validates perfect and submits via ajaxSubmit fine. Where the problem is the success part. If I have this it works: submitHandler: function(form) { var options = { success: [b]alert('Thanks for your comment!'),[/b] clearForm: true }; $("#vip").ajaxSubmit(options); return false; } Code (markup): However if I do this... it sends the email but does not alert success: submitHandler: function(form) { var options = { success: [b]function() { alert('Thanks for your comment!'); }, [/b] clearForm: true }; $("#vip").ajaxSubmit(options); return false; } Code (markup): What am I missing?