Created
August 30, 2015 11:14
-
-
Save thenoseman/2c72d88a5ce63ac7277d to your computer and use it in GitHub Desktop.
Form-O-Fill: Fill only empty fields
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
var rules = [{ | |
url: /all-types/, | |
name: "Just fill empty fields", | |
fields: [{ | |
"selector": "input[type=text]", | |
"value": function($e) { | |
return (!$e.val() ? "use this" : null); | |
} | |
},{ | |
"selector": "textarea", | |
"value": function($e) { | |
return (!$e.val() ? "use this" : null); | |
} | |
}] | |
} | |
]; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment