Show “loading” animation on button click

前端 未结 6 941
感情败类
感情败类 2021-01-30 14:10

I want to do something very simple. I have one button in my page.

6条回答
  •  小蘑菇
    小蘑菇 (楼主)
    2021-01-30 14:37

    I know this a very much late reply but I saw this query recently And found a working scenario,

    OnClick of Submit use the below code:

     $('#Submit').click(function ()
     { $(this).html(''); // A GIF Image of Your choice
     return false });
    

    To Stop the Gif use the below code:

    $('#Submit').ajaxStop();

提交回复
热议问题