View Single Post
Old 10-26-2012, 05:24 PM   PM User | #2
DanInMa
Senior Coder

 
DanInMa's Avatar
 
Join Date: Nov 2010
Location: Salem,Ma
Posts: 1,307
Thanks: 12
Thanked 204 Times in 204 Posts
DanInMa is on a distinguished road
im not familiar with the ajaxform plugin, but it looks to me like you dont even need as you have constructed your own ajax submittal. I would advise removing .ajaxForm(myFormOptions)

then do this with your success function

Code:
                        success: function(msg){
                            
                            $("#quick_contact_form [name='" + msg.inputName +"']").removeClass('error');  
                            $("#quick_contact_form [name='" + msg.inputName +"']").removeClass('success');  
                            $("#quick_contact_form [name='" + msg.inputName +"']").addClass(msg.status);  
                            $("#quick_contact_form [name='" + msg.inputName +"']").val(msg.message);
                            $('#quick_contact_form img.loaderIcon').fadeOut(1000);
                            redError = msg.message;
                            //reset form
                             $('#quick_contact_form').reset()
                             //alert
                             alert('Thanks for your submittal!')
                        }
__________________
- Firebug is a web developers best friend! - Learn it, Love it, use it!
- Validate your code! - JQ/JS troubleshooting
- Using jQuery with Other Libraries - Jslint for Jquery/other JS library users
DanInMa is online now   Reply With Quote