jQuery Timed Event

后端 未结 3 1451
温柔的废话
温柔的废话 2021-01-04 02:15

Is it possible, using jQuery, to fire off an event to set a div tag\'s text after n. seconds?

Thanks! George

3条回答
  •  悲&欢浪女
    2021-01-04 02:47

    if you're using jQuery 1.4, you can always do:

    $(function() {
       $('#divId').delay(3000).text('New Text');
    });

提交回复
热议问题