I am quite new on javascript and jquery. I have implemented the following simple code to update the textfield with random values with every 5 seconds. However, it does not update.
Please do not offend if the question is so simple for you.
<input type="text" value="Hello there" id="me"/><br/>
self.init = function () {
$("#me").val(setInterval(myFunction(),5000));
}
function myFunction() {
return Math.floor((Math.random() * 100) + 1);
}