If 4e3 is equal to 4 seconds. What would I use for 3 Secs? or 2 Secs?
<SCRIPT LANGUAGE="javascript">
$( function() {
setTimeout(function() {
$('#loadingque').trigger('click');
}, 4e3);
});
</script>
If 4e3 is equal to 4 seconds. What would I use for 3 Secs? or 2 Secs?
<SCRIPT LANGUAGE="javascript">
$( function() {
setTimeout(function() {
$('#loadingque').trigger('click');
}, 4e3);
});
</script>
If you understand why 4e3
is 4000 then you can figure out what 3000 looks like. eN
means 10 to the power N
, so 3 times 10 to the power 3 is 3000, or 3e3
.
setTimeout(function() {
// Do something after 5 seconds
}, 5000);
jQuery(document).ready(function () {`enter code here`
//hide a div after 3 seconds
setTimeout( "jQuery('#div').hide();",3000 );
});
Hope these will help u..
It takes milliseconds
setTimeout(function() {
document.write(new Date());
}, 3000);
var runCount = 0;
var maxCount = 1000000;
function timerMethod()
{
runCount++;
if(runCount >= maxCount)
{
clearInterval(timerId);
}
$('#loadingque').trigger('click');
console.log(runCount + "of" + maxCount);
}
var timerId = setInterval(timerMethod, 3000);
this is running every 3000ms for maxCount times