Advertisement
Guest User

Untitled

a guest
Sep 4th, 2015
83
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.62 KB | None | 0 0
  1. $('.js-form').on('valid.fndtn.abide', function(e) {
  2. e.preventDefault();
  3.  
  4. $.get(templateUrl + "/assets/inline-spinner.svg.php", function(data) {
  5. $(".js-submit .icon").html(data);
  6. });
  7.  
  8. var formdata = $(this).serialize();
  9. var posting = $.post(ajaxurl, {'data':formdata,'action': 'form_handler'} );
  10.  
  11. posting.done(function(data) {
  12. $('.js-errdisp').html(data);
  13.  
  14. $.get(templateUrl + "/assets/inline-check.svg.php", function(data) {
  15. $(".js-submit .icon").html(data);
  16. });
  17.  
  18. dataLayer.push({'event': 'QuoteSubmit', 'eventCategory': 'link', 'eventAction': 'submit'});
  19.  
  20. });
  21.  
  22. });
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement