Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- contactForm = function(){
- $("#contact-submit").on('click',function() {
- $contact_form = $('#contact-form');
- var fields = $contact_form.serialize();
- $.ajax({
- type: "POST",
- url: "_include/php/contact.php",
- data: fields,
- dataType: 'json',
- success: function(response) {
- if(response.status){
- $('#contact-form input').val('');
- $('#contact-form textarea').val('');
- }
- $('#response').empty().html(response.html);
- }
- });
- return false;
- });
- }
Advertisement
Add Comment
Please, Sign In to add comment