Proper syntax to fadeOut form
I need to fadeOut a contact form once it is submitted and am having trouble figuring out the proper syntax in order to include it in the code below.
I just replaced my validation with jQuery's validation function, and the code I was previously using to do this is:
- $("#contact ").fadeOut("fast", function ());
The current function to validate and submit the form using jQuery.
- $().ready(function () {
- // validate the comment form when it is submitted
- $("#contact").validate({
- submitHandler: function (form) {
- jQuery(form).ajaxSubmit({
- target: "#result"
- });
- }
- });
- });