Easy Tutorial
❮ Prop Datetime Local Form Dom Obj Datetime ❯

Input Date name Attribute

Input Date Object

Example

Get the name of the date field:


Definition and Usage

The name attribute sets or returns the value of the name attribute of a date field.

The name attribute is commonly used as an identifier for submitting form data to the server or as a reference identifier in JavaScript on the client side.

Note: Data cannot be submitted to the server unless the name attribute is set.


Browser Support

All major browsers support the name attribute.

Note: The <input type="date"> element is not supported in Internet Explorer or Firefox browsers.


Syntax

Return the name attribute:

Set the name attribute:

Attribute Values

Value Description
name Describes the name of the date field

Technical Details

| Return Value: | A string, representing the name of the date field. | | --- | --- |


More Examples

Example

Modify the name of the date field:


Related Pages

HTML Reference: HTML <input> name Attribute


❮ Prop Datetime Local Form Dom Obj Datetime ❯