Comments 2Azhar started the conversationApril 10, 2017 at 9:53amHow can I add loading overlay after clicking on any button till it redirects to another page?[deleted] repliedApril 11, 2017 at 7:10amHi Azhar,Here is the code for that: jQuery( document ).ready( function( $ ) { jQuery( '.my-button' ).on( 'click', function( ev ) { showLoadingOverlay(); } ); function showLoadingOverlay() { jQuery( 'body' ).append( '<div class="page-loading-overlay"> <div class="loader-2"></div> </div>' ); }} );In this case, just target the elements, I have added .my-button as an example.I hope it will work fine for you. Sign in to reply ...
How can I add loading overlay after clicking on any button till it redirects to another page?
Hi Azhar,
Here is the code for that:
In this case, just target the elements, I have added .my-button as an example.
I hope it will work fine for you.