troubleshooting Question

Adding 1 the value of input "text" every 3 seconds

Avatar of Whing Dela Cruz
Whing Dela CruzFlag for Anguilla asked on
5 Comments3 Solutions205 ViewsLast Modified:
Hi experts, I want to make a function that would change the value of a certain input text, adding 1 in every 3 seconds. Please help.

<!Doctype Html>
<input type="text" id="iCount" value="0"/>

//I want here to add 1 the value of iCount every 3 seconds
var x = document.getElementById("iCount").value;
document.getElementById("txtHint").value = "" 

Nitin Sontakke

Our community of experts have been thoroughly vetted for their expertise and industry experience.

Join our community to see this answer!
Unlock 3 Answers and 5 Comments.
Start Free Trial
Learn from the best

Network and collaborate with thousands of CTOs, CISOs, and IT Pros rooting for you and your success.

Andrew Hancock - VMware vExpert
See if this solution works for you by signing up for a 7 day free trial.
Unlock 3 Answers and 5 Comments.
Try for 7 days

”The time we save is the biggest benefit of E-E to our team. What could take multiple guys 2 hours or more each to find is accessed in around 15 minutes on Experts Exchange.

-Mike Kapnisakis, Warner Bros