Class: InputElementHidden

InputElementHidden

A hidden input object. Used to pass non-displayed info to server.

new InputElementHidden(tag, val)

Parameters:
Name Type Description
tag String The name of the element
val mixed The value of the element
Source:
Example
customerID = new InputElementHidden('custID',customerID);

Extends

Methods

appendTo(parent)

Appends the derived object to a DOM node
Parameters:
Name Type Description
parent Object The DOM element to which this is added
Inherited From:
Source:

disable()

Disables the object
Inherited From:
Source:

enable()

Enables the object
Inherited From:
Source:

getValue() → {mixed}

Retrieves the value previously attached to the object.
Source:
Returns:
The attached value
Type
mixed

onChange(listener)

Attaches an onchange handler to the object
Parameters:
Name Type Description
listener function The event listener to add
Inherited From:
Source:

onClick(listener)

Attaches an onclick handler to the object
Parameters:
Name Type Description
listener function The event listener to add
Inherited From:
Source:

setValue(valuestring)

Changes the value of the object, originally set in the constructor.
Parameters:
Name Type Description
valuestring String The value to be assigned to the object
Source: