Skip to content

Instantly share code, notes, and snippets.

@dantetesta
Last active May 25, 2022 12:02
Show Gist options
  • Select an option

  • Save dantetesta/d4c144004736f50f64ce6cfdcc3a80bb to your computer and use it in GitHub Desktop.

Select an option

Save dantetesta/d4c144004736f50f64ce6cfdcc3a80bb to your computer and use it in GitHub Desktop.
/*BY: ASK JARVIS + DANTE TESTA */
<script>
jQuery(document).ready(function(){
var senha ="";
var letras = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789";
for (var i = 0; i < 8; i++) {
senha += letras.charAt(Math.floor(Math.random() * letras.length));
}
jQuery("#form-field-senha").val(senha);
});
</script>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment