I have this code
$(document).ready(function () {
$('.HighlightedTr').delay(1000).effect("highlight", {}, 1000);
});`
Works good but once.. Is it possible to repeat this with some delay? like every seconds or every 5 seconds?
Txs
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Yes, use the setInterval function.
This will execute code every 4000 milliseconds.
Code could also be an anonymous function.
setTimeoutinstead executes your code just once, after some time.You code will be called after 4000 milliseconds.
Finally, you can cancel these timers with
clearTimeout(interval).