Class: InputCss

InputCss()

The default InputElement interface to css operations

Constructor

new InputCss()

Source:

Methods

clear(input)

This clear the element for this class css values

Parameters:
Name Type Description
input HTMLInputElement

The input element

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

Source:

hide(input)

This will set the hidden attribute to true

Parameters:
Name Type Description
input HTMLInputElement

The element

Source:

show(input)

This will set the hidden attribute to false

Parameters:
Name Type Description
input HTMLInputElement

The element

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

Source:

warning(input, msg)

This will add a warning class and set the title to message

Parameters:
Name Type Description
input HTMLInputElement

The input element

msg string

The message

Source: