<ul> <li> <label class="blog-label"><input type="checkbox" name="blog_id[]" value="{$iBlogId}" class="input-checkbox" onclick="this.parentNode.className += ' checked'"/> {$blog.name}</label> </li> </ul>
var timeoutID;
$('#btn').click(function () {
test();
});
function test() {
clearTimeout(timeoutID);
timeoutID = setTimeout(function () {
console.log('1');
}, 3000);
}