Easy Tutorial
❮ Prop Range Value Prop Canvas Globalalpha ❯

Input Number type Attribute

Input Number Object

Example

Returns the form element type for the number field:

x Output result:


Definition and Usage

The type attribute returns the form type for the number field.

In an input number, this attribute typically returns "number".


Browser Support

All major browsers support the type attribute.

Note: Internet Explorer 9 and earlier versions do not support the <input> element with the type="number" attribute.


Syntax

Technical Details

| Return Value: | String, representing the form element type for the number field | | --- | --- |

❮ Prop Range Value Prop Canvas Globalalpha ❯