$.ajax({
        url: $(this).attr('action'),
        type: 'POST',
        data: $(this).serialize()
      });