Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- $('.js-form').on('valid.fndtn.abide', function(e) {
- e.preventDefault();
- $.get(templateUrl + "/assets/inline-spinner.svg.php", function(data) {
- $(".js-submit .icon").html(data);
- });
- var formdata = $(this).serialize();
- var posting = $.post(ajaxurl, {'data':formdata,'action': 'form_handler'} );
- posting.done(function(data) {
- $('.js-errdisp').html(data);
- $.get(templateUrl + "/assets/inline-check.svg.php", function(data) {
- $(".js-submit .icon").html(data);
- });
- dataLayer.push({'event': 'QuoteSubmit', 'eventCategory': 'link', 'eventAction': 'submit'});
- });
- });
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement