Monday, August 16, 2021

After Web Form Summited Zip file auto download


jQUERY CODE

-------------------------

 jQuery(function() {

jQuery('a[data-auto-download]').each(function(){

var $this = jQuery(this);

setTimeout(function() {

window.location = $this.attr('href');

}, 2000);

});

});

The below HTML code should be placed in the place of success message to make the zip file auto downlaod. 

HTML CODE:

------------------------------

<a class="button" data-auto-download="" href="/download.zip">click here</a>

No comments:

Post a Comment