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 submitting form data to the server, or to reference form data on the client using JavaScript.
ਧਿਆਨ:Only form elements with name attributes will pass their values when submitting the form.
See also:
HTML Reference Manual:HTML <input> name ਪ੍ਰਤੀਯੋਗਿਤਾ
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
ਪ੍ਰਤੀਯੋਗਿਤਾ ਮੁੱਲ
ਮੁੱਲ | ਵਰਣਨ |
---|---|
name | ਹਫ਼ਤੇ ਦੇ ਖੇਤਰ ਦੇ ਨਾਮ ਨੂੰ ਨਿਰਧਾਰਿਤ ਕਰਦਾ ਹੈ。 |
ਤਕਨੀਕੀ ਵੇਰਵੇ
ਵਾਪਸ ਮੁੱਲ: | ਸਟਰਿੰਗ ਮੁੱਲ, ਇਹ ਹਫ਼ਤੇ ਦੇ ਖੇਤਰ ਦੇ ਨਾਮ ਨੂੰ ਪ੍ਰਤੀਕਸ਼ਾ ਕਰਦਾ ਹੈ。 |
---|
ਬਰਾਉਜ਼ਰ ਸਮਰਥਨ
ਚਰਮ | ਐਜ਼ | ਫਾਰਫੈਕਸ | ਸੈਫਾਰੀ | ਓਪੇਰਾ |
---|---|---|---|---|
ਚਰਮ | ਐਜ਼ | ਫਾਰਫੈਕਸ | ਸੈਫਾਰੀ | ਓਪੇਰਾ |
ਸਮਰਥਨ | 10.0 | ਸਮਰਥਨ | ਸਮਰਥਨ | ਸਮਰਥਨ |
ਧਿਆਨ:<input type="week"> ਐਲੀਮੈਂਟ ਫਾਰਫੈਕਸ ਵਿੱਚ ਕੋਈ ਮਿਤੀ ਖੇਤਰ / ਕੈਲੰਡਰ ਨਹੀਂ ਦਿਖਾਉਂਦਾ ਹੈ。