Skip to content

Instantly share code, notes, and snippets.

@alkrauss48
Last active August 29, 2015 14:01
Show Gist options
  • Save alkrauss48/8c86054d0e9ce98fc071 to your computer and use it in GitHub Desktop.
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.
// Set text fields
$('input[type=text]').val('test');
// Set email fields
$('input[type=email]').val('test@test.com');
// 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