Delay changing innerHTML text using jQuery

前端 未结 2 1316
自闭症患者
自闭症患者 2021-01-20 15:05

So I\'ve got a pretty simple button that basically toggles a form on and off - we\'ll be using this on our site since we\'re doing an update and would like feedback availabl

2条回答
  •  隐瞒了意图╮
    2021-01-20 15:45

    How about this:

       $(document).ready(function() {
    
          function changeText(){
            $("#myDiv").text('test')
          }
    
          setTimeout(changeText, 2000);
    
        });
    

提交回复
热议问题