Input Number type Property
Example
Return which type of form element the number field is:
var x = document.getElementById("myNumber").type;
Try it Yourself »
Description
The type property returns which type of form element the week field is.
For an input number, this property will always return "number".
Browser Support
Property | |||||
---|---|---|---|---|---|
type | Yes | 10.0 | Yes | Yes | Yes |
Syntax
numberObject.type
Technical Details
Return Value: | A String, representing the type of form element the number field is |
---|
❮ Input Number Object
Copyright 1999-2023 by Refsnes Data. All Rights Reserved.