jQueryを使用して、nの後にdivタグのテキストを設定するイベントを発生させることは可能ですか? 秒?
ありがとう!ジョージ
var doIt = function() {
$("div.my").text("My message");
}
setTimeout(doIt, 3000);
jQuery 1.4を使用している場合は、いつでも次のことができます。
$(function() {
$('#divId').delay(3000).text('New Text');
});
これには、以下の jQuery プラグインを使用しています。Delay はチェーン関数で使用できますが、notNow では使用できません。
遅れ
http://plugins.jquery.com/project/delay
$('#animate-this').fadeIn().delay(500).fadeOut();
今はやめろ
http://plugins.jquery.com/project/notNow
$.notNow(2000, function() {
alert('woolsworth');
});