Methods
clear(input)
This clear the element for this class css values
Parameters:
Name | Type | Description |
---|---|---|
input |
HTMLInputElement | The input element |
- Implements:
- Source:
error(input, msg)
This will add a error class and set the title to message
Parameters:
Name | Type | Description |
---|---|---|
input |
HTMLInputElement | The input element |
msg |
string | The message |
- Implements:
- Source:
hide(input)
This will set the hidden attribute to true
Parameters:
Name | Type | Description |
---|---|---|
input |
HTMLInputElement | The element |
- Implements:
- Source:
show(input)
This will set the hidden attribute to false
Parameters:
Name | Type | Description |
---|---|---|
input |
HTMLInputElement | The element |
- Implements:
- Source:
valid(input, msg)
This will add a valide class and clear the title
Parameters:
Name | Type | Description |
---|---|---|
input |
HTMLInputElement | The input element |
msg |
string | The message |
- Implements:
- Source: