Class BTM.Form.Text.Placeholder
Text field Placeholders
Defined in: form.js.
| Constructor Attributes | Constructor Name and Description |
|---|---|
|
BTM.Form.Text.Placeholder(element, placeholderText)
|
| Field Attributes | Field Name and Description |
|---|---|
|
The Input element
|
|
|
Indicates if placeholder text is showing
|
|
|
The placeholder text (false if none)
|
| Method Attributes | Method Name and Description |
|---|---|
|
hide()
Hide the placeholder text
|
|
|
show()
Show the placeholder text
|
Class Detail
BTM.Form.Text.Placeholder(element, placeholderText)
- Parameters:
- {HTMLElement} element
- element ID or element reference to initialise Placeholder on
- {String} placeholderText Optional
- overide the default Placeholder text (read from title attribute) for an Input
Field Detail
{HTMLElement}
element
The Input element
{Boolean}
placeholderActive
Indicates if placeholder text is showing
{String|Boolean}
placeholderText
The placeholder text (false if none)
Method Detail
hide()
Hide the placeholder text
show()
Show the placeholder text