Skip to content

Instantly share code, notes, and snippets.

@jakecraige
Created August 17, 2013 15:15
Show Gist options
  • Save jakecraige/6257373 to your computer and use it in GitHub Desktop.
Save jakecraige/6257373 to your computer and use it in GitHub Desktop.
function watermarkIt(myArray, color) {
for(var i=0; i<myArray.length; i++) {
$(myArray[i][0]).watermark(myArray[i][1], {color: color});
}
}
// How to Use
watermarkIt( [
['#edit-submitted-full-name', 'Full Name'],
['#edit-submitted-email-address', 'Email Address'] ], '#000');
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment