UNPKG

nos-forms-jquery

Version:

Build and validate DRY html forms in minutes with JSON, jQuery and Bootstrap

50 lines (45 loc) 1.05 kB
# Type # ## text ## #### Example with all options #### ```javascript { "name": "txtExample", "id": "txtId", "type": "text", "autofocus": true, "label": "Simple Text Field Example", "required": true, "classname": "form-control", "formGroup": true, "placeholder": "Just a Text Field", "pattern": "[A-Za-z]{5}", "minlength": 5, "maxlength": 60, "data": { "field": 0, "testing": 123, }, "tabindex": 0, "value": "", "title": "Simple Text Field", "autocomplete": "on", "disabled": false, "readonly": false, "size": 60, "messages": { "required": "This simple text field is required", "invalid": "This field must be valid", "minlength": "This field must be at least 5 characters long" } } ``` #### More practical example #### ```javascript { "name": "txtExample", "type": "text", "label": "Simple Text Field Example", "required": true, "maxlength": 60 } ```