Namespace BTM.Form
Form and Form Element functionality
Defined in: form.js.
| Constructor Attributes | Constructor Name and Description |
|---|---|
| Method Attributes | Method Name and Description |
|---|---|
| <static> |
BTM.Form.getValue(element)
Get the value from a form element.
|
| <static> |
BTM.Form.makeValidator(element)
Convenience Function to create a Form Validator
|
Method Detail
Get the value from a form element. If element is a Multi-Select, all selected values are returned in an Array
- Parameters:
- {HTMLElement|String} element
- element ID or element reference to the form element
- Returns:
- {String|String[]} the element value. Multi-Select elements return an Array of selected option values
<static>
{BTM.Form.Validator}
BTM.Form.makeValidator(element)
Convenience Function to create a Form Validator
- Parameters:
- {HTMLElement|String} element
- element ID or element reference to Form to be validated
- Returns:
- {BTM.Form.Validator} new Form Validator object
- See:
- BTM.Form.Validator