Input Week name attribute
Definition and Usage
name
Set or return the value of the name attribute of the week field.
The HTML name attribute is used to identify form data after form data is submitted to the server, or to reference form data on the client using JavaScript.
Babala:Only form elements that have a name attribute will pass their values when submitting a form.
See also:
HTML Reference Manual:HTML <input> name Atribute
Example
Example 1
Get the name of the week field:
var x = document.getElementById("myWeek").name;
Example 2
Change the name of the week field:
document.getElementById("myWeek").name = "newWeekName";
Syntax
Return name attribute:
weekObject.name
Set name attribute:
weekObject.name = name
Halaga ng Atribute
Halaga | Paglalarawan |
---|---|
name | Tinutukoy ang pangalan ng petsang field. |
Detalye ng Teknolohiya
Halimbawa ng Balaan: | Ang string na halaga na naglalarawan ng pangalan ng petsang field. |
---|
Suporta ng Browser
Chrome | Edge | Firefox | Safari | Opera |
---|---|---|---|---|
Chrome | Edge | Firefox | Safari | Opera |
Suporta | 10.0 | Suporta | Suporta | Suporta |
Babala:Ang elemento na <input type="week"> ay hindi nagpapakita ng anumang field ng petsa o kalendaryo sa Firefox.