Easy Tutorial
❮ Prop Meter Optimum Prop Search Size ❯

Hidden name Attribute


Definition and Usage

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

The name attribute is used to send data to the server after form submission or to reference form data in JavaScript.

Note: Only the name attribute of form elements is used to transmit data values after form submission.

Syntax

Set the name attribute:

Return the name attribute:


Browser Support

All major browsers support the name attribute.


Example

The following example returns the name of the hidden input field:


❮ Prop Meter Optimum Prop Search Size ❯