Skip to content

Instantly share code, notes, and snippets.

@rudiedirkx
Created November 8, 2013 19:24
Show Gist options
  • Save rudiedirkx/7376205 to your computer and use it in GitHub Desktop.
Save rudiedirkx/7376205 to your computer and use it in GitHub Desktop.
javascript:
jQuery('select').each(function(i, el) {
el.selectedIndex = 1 + parseInt(Math.random() * (el.options.length-1));
});
jQuery('input:not([type]), input[type="text"], textarea').val(function() {
return ['Lorem', 'Ipsum', 'Dolor'][ parseInt(Math.random() * 3) ];
});
void(0);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment