Mini Shell

Direktori : /home2/aravindar/public_html/assets/js/
Upload File :
Current File : /home2/aravindar/public_html/assets/js/contact-form.js

$(function(){var form=$('#contact-form');var formMessages=$('.form-messege');$(form).submit(function(e){e.preventDefault();var formData=$(form).serialize();$.ajax({type:'POST',url:$(form).attr('action'),data:formData}).done(function(response){$(formMessages).removeClass('error');$(formMessages).addClass('success');$(formMessages).text(response);$('#contact-form input,#contact-form textarea').val('');}).fail(function(data){$(formMessages).removeClass('success');$(formMessages).addClass('error');if(data.responseText!==''){$(formMessages).text(data.responseText);}else{$(formMessages).text('Oops! An error occured and your message could not be sent.');}});});});

Zerion Mini Shell 1.0