Skip to content

Instantly share code, notes, and snippets.

@DMeechan
Created January 18, 2018 10:48
Show Gist options
  • Save DMeechan/7e8ffac57cb880c068f8ff8bf8ff4c5e to your computer and use it in GitHub Desktop.
Save DMeechan/7e8ffac57cb880c068f8ff8bf8ff4c5e to your computer and use it in GitHub Desktop.
Setting the value of an input field

$("input[name='username']").setAttribute('value', 'SET-VALUE-HERE')

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment