Skip to content

Instantly share code, notes, and snippets.

@ethagnawl
Last active December 15, 2015 05:18
Show Gist options
  • Save ethagnawl/5207479 to your computer and use it in GitHub Desktop.
Save ethagnawl/5207479 to your computer and use it in GitHub Desktop.
Mass assign harvestapp.com invoice unit price input values.
var HOURLY_RATE = 9999.99; // lulz
var inputs = [].slice.call(document.querySelectorAll('.price'));
inputs.forEach(function (price) {
if (price.children[0]) {
price.children[0].value = HOURLY_RATE;
}
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment