43
rated 0 times
[
47]
[
4]
/ answers: 1 / hits: 23037
/ 11 Years ago, wed, october 16, 2013, 12:00:00
I'd like to show a random numbers within my list. Im grabbing the list from the backend, and im just using these numbers as examples. This is my code, I'm not quite sure why its not filling in the text.
setInterval(function() {
var number = 1 + Math.floor(Math.random() * 6);
$('.num-gen').text(number);
},
Made a fiddle here to show you what I'm working with. Thanks in advance.
More From » jquery