この関数の実行を 3 秒間遅らせたいと考えています。
<script type="text/javascript">
$('#FormsPageID table tr:nth-child(12) td:nth-child(2) div span span input')
.on('focus', function(){
var $this = $(this);
if($this.val() == '4/11/2013'){
$this.val('');
}
})
.on('blur', function(){
var $this = $(this);
if($this.val() == ''){
$this.val('4/11/2013');
}
});
</script>
私が遭遇した例はすべて、setTimeout を使用して X 秒後に要素を表示することを含みます。しかし、それが私の機能にどのように適用されるかはわかりません。