AJAX show hide loader


/ Published in: jQuery
Save to your folder(s)



Copy this code and paste it in your HTML
  1. $('#loader').ajaxStart(function() {
  2. $('#loader').removeClass('hidden');
  3. }).ajaxStop(function() {
  4. $('#loader').addClass('hidden');
  5. });

Report this snippet


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.