Joke Collection Website - Blessing messages - The basic application of jQuery: using jQuery filter selector to realize countdown delay button. Please write it for me, thank you.

The basic application of jQuery: using jQuery filter selector to realize countdown delay button. Please write it for me, thank you.

$ (document). ready(function(){

var? outSec? =? 5,? timeId? =? setInterval(function(){

If (outSec? ==? 0){

clear interval(time id);

$ ("# button ")。 Click (click the button). Val ('click the button');

Return;

}

$("#button ")。 Val ('click the button ('+outsec+')');

outSec? -=? 1;

}, 1000)

})