How to create a fading label in JQuery / ASP.NET after a button press

后端 未结 4 677
面向向阳花
面向向阳花 2021-01-22 13:59

I think that this should be pretty easy but I\'m not quite sure how to wire things up.

I have a page on which the user can define a query. When done, the user enters a

4条回答
  •  情书的邮戳
    2021-01-22 14:45

    Something like this...

    var buttonFade = function() {
      $('#my .label .selector').fadeOut(2000);
    }
    setTimeout(buttonFade, 2000);
    

    If you post some of your markup, I could also take a stab at putting the setTimeout() into a function triggered when the label appears.

提交回复
热议问题