YouTip LogoYouTip

Prop Date Form

HTML DOM Input Date form Property

HTML DOM Input Date form Property

-- Learning is not just about technology, but also about dreams!

JavaScript Reference

Overview

JavaScript Objects

Browser Objects

DOM Objects

HTML Objects

<input> - color

<input> - datetime

Input Date form Property

Input Date Object Reference Input Date Object

Example

Return the id of the form containing the <input type="date"> property:

var x = document.getElementById("myDate").form.id;

x output result is:

myForm

Try it yourself Β»


Definition and Usage

The form property returns a reference to the form that contains the date field.

This property returns the form object on success.

Note: This property is read-only.


Browser Support

Internet ExplorerFirefoxOperaGoogle ChromeSafari

The form property is supported in all major browsers.

Note: Internet Explorer or Firefox does not support the <input type="date"> element.


Syntax

inputdateObject.form

Technical Details

Return Value: A reference to the form element that contains the date field. Returns null if the date control is not in a form.

Input Date Object Reference Input Date Object

<input> - color

<input> - datetime

iFlytek Xingchen Coding Plan includes free model call quota, DeepSeek, GLM, Kimi, MiniMax, one-stop experience and deployment platform. Configuration Guide Β₯3.9/month Subscribe Now

Click me to share notes

Cancel

Write notes...

Image address

Image description

Image size Γ—

← Prop Date NameProp Date Disabled β†’