Posts by GhOST • 11 points
1 post
-
1
votes1
answer93
viewsA: Auto-populate inputs with js / jquery
You can use the function attr(), defining an attribute: $("#usuário").attr('value', 'MY_USER'); // Irá definir o atributo "value" para 'MY_USER' $("#pass").attr('value', 'MY_PASSWORD'); // Irá…