I'm wanting something along these lines:
Inter = setInterval(Function, 1000);
clearInerval(Inter);
Inter = setInterval(Function, 1000);
I've tried something similar without success. It's hard to explain all the details in a tidy way. Can anyone confirm if this setup should be functioning as expected, or is there something essential I might be overlooking?
Edit : Let me give it another shot at explaining my issue. Essentially, I have an interval being set, and a function to clear that same interval. I want these to reset after each input, so the clearInterval needs to recognize the original ID of the interval in order to clear it properly. However, reusing the ID seems to cause trouble for some reason. Hopefully my ramblings somewhat make sense.