I have an input of type text where I add a value.
<input type="text" name="mydat" id="mydat" value="60000" />
This I have a timer which runs every minute.
<script>
window.setInterval(function(){
//do something here
}, 60000);
</script>
In the code above the interval value is hardcoded.
How can I do this instead:
60000 = #mydat value
So, everytime it loops it reads the value from #mydat ?