How can I use delay() with show() and hide() in Jquery
问题 How can I use delay() with show() and hide() in Jquery ? 回答1: Pass a duration to show() and hide() : When a duration is provided, .show() becomes an animation method. E.g. element.delay(1000).show(0) DEMO 回答2: Why don't you try the fadeIn() instead of using a show() with delay(). I think what you are trying to do can be done with this. Here is the jQuery code for fadeIn and FadeOut() which also has inbuilt method for delaying the process. $(document).ready(function(){ $('element').click