Last active
August 29, 2015 14:01
-
-
Save alkrauss48/8c86054d0e9ce98fc071 to your computer and use it in GitHub Desktop.
jQuery Form Fillers for instant (basic) form-filling action. Run through the browser console.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Set text fields | |
$('input[type=text]').val('test'); | |
// Set email fields | |
$('input[type=email]').val('[email protected]'); | |
// Set combo boxes to 2nd index (in case first is blank) | |
$('select').prop('selectedIndex', 1); | |
// Set all checkboxes to checked | |
$('input[type=checkbox]').prop('checked', true) | |
// Set all date fields | |
$('input[type=date]').val('2015-01-01') |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment