Jquery delay not working correctly

后端 未结 4 1625
南旧
南旧 2021-01-28 23:46

I want to create a delay between these two messages:

$(\'#submit-account\').html(animation + \'Submitting Data\')
$(\'#submit-account\').html(animation + \'Valid         


        
4条回答
  •  余生分开走
    2021-01-29 00:22

    I think that problem is because delay() only delays item(s) in a queue (jQuery queues automatically only animations). So try to modify fade function to fadeIn(0) and jQuery will interpret it as animation and now delay should works.

提交回复
热议问题