Skip to content

Instantly share code, notes, and snippets.

@dklisiaris
Last active October 18, 2016 09:16
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save dklisiaris/8962e48d1e67ec72969440af5190f016 to your computer and use it in GitHub Desktop.
Save dklisiaris/8962e48d1e67ec72969440af5190f016 to your computer and use it in GitHub Desktop.
// Fills all textareas and text input fields in page with random characters
$.each($("textarea, input[type='text']"), function(index, textfield){
$(textfield).val(Math.random().toString(24).substring(7))
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment