Skip to content

Instantly share code, notes, and snippets.

@acatl
Created July 22, 2011 17:52
Show Gist options
  • Save acatl/1099971 to your computer and use it in GitHub Desktop.
Save acatl/1099971 to your computer and use it in GitHub Desktop.
requiredfield example
var requeiredFieldOptions = {
watermarkText: "Enter age here...",
functionValidate: function(value) {
if (parseInt(value) < 18) {
return false;
}
return true;
},
dataType: "number",
liveCheck: true
};
$("#requeiredField").requiredfield(requeiredFieldOptions);
// jsfiddle: http://jsfiddle.net/acatl/Lh99C/
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment