Skip to content Skip to sidebar Skip to footer

How To Show A Hidden Element With Jquery

I have a busy icon on my page which has a class of 'hidden'. When the user clicks a button to start processing input data, I want to show the busy icon. I am doing this with $('#

Solution 1:

Try this

First u link ur image on a div

Then

Try this, it will work fine

$.ajax({
   url : "URL",
   data: { data },
   beforeSend: function(){
     $("#loading").show();
   },
   complete: function(){
     $("#loading").hide();
   },
   success:  function (response) {

   });
});

Post a Comment for "How To Show A Hidden Element With Jquery"