Skip to content

Instantly share code, notes, and snippets.

@joicemjoseph
Last active August 29, 2015 14:14
Show Gist options
  • Save joicemjoseph/4a4b623fc6d98b6774a2 to your computer and use it in GitHub Desktop.
Save joicemjoseph/4a4b623fc6d98b6774a2 to your computer and use it in GitHub Desktop.
Random input populator
$joice = $('input:text');
$.each($joice, function(key, $value) {
randomVal = Math.floor((Math.random() * 999) + 1);
$value.value = (randomVal);
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment