/ Published in: JavaScript
Arguments: Element from a form. Take that element and checks if is filled. If not, returns false. If is filled, returns true. From book Dom Scripting by Jeremy Keith
Expand |
Embed | Plain Text
function isFilled(field) { if (field.value.length < 1 || field.value == field.defaultValue) { return false; } else { return true; } }
You need to login to post a comment.
