Find out which type of form element the color picker is:
The result of x will be:
The type property returns which type of form element the color picker is.
For a color picker this property will always return "color".
The type property is supported in all major browsers.
Note: The <input type="color"> element is not supported in Internet Explorer and Safari.
Return Value: | A String, representing the type of form element the color picker is |
---|