Readonly
optionsGets the current options of the first of the given NumberFormat elements. When the element does not have a NumberFormat instance, throws.
The element to get the options from.
The current options of the element.
Readonly
valueGets the current value of the first of the given NumberFormat elements as a formatted string, according to the current options. When the NumberFormat element is empty, returns an empty string. When the element does not have a NumberFormat instance, throws.
The element to get the value from.
The current value of the element, or an empty string when the element is empty.
Readonly
valueGets the current value of the first of the given NumberFormat elements, as a number. When the NumberFormat element is empty, returns undefined. When the element does not have a NumberFormat instance, throws.
The element to get the value from.
The current value of the element, or undefined when the element is empty.
Readonly
valueGets the current value of the first of the given NumberFormat elements as a numerical string. When the NumberFormat element is empty, returns an empty string. When the element does not have an NumberFormat instance, throws.
This is similar to valueNumeric, but returns the value as a string instead of a number. This prevents issues with floating point precision.
The element to get the value from.
The current value of the element, or an empty string when the element is empty.
The API for getting information from NumberFormat elements, such as the current value.
The API is available via
$.xutil.numberFormat.get
.