dataType property (attribute, Element)
Sets or returns the data type for the current element or attribute.
This property has an effect on the nodeTypedValue property, it sets or retrieves the value of a node in the data type defined by the dataType property.
You can find the related objects in the Supported by objects section below.
This property is read/write.
String that sets or returns the data type, or null if the data type is not declared, or invalid.
Default: this property has no default value.
Example HTML code 1:
This example illustrates the use of the dataType property:
Did you find this example helpful?
User Contributed Comments