Ask a very simple question about html code. The title should be long! ! ! ! ! ! ! ! _html/css_WEB-ITnose

WBOY
Release: 2016-06-24 12:21:05
Original
1072 people have browsed it


The name value here is empty. What does it mean?


Reply to discussion (solution)

means that although it is a text box, it has no name.
It’s like not registering it in the household register after birth.

When accessing the text box, you can access it through id or name, both of which are marked attributes

means that although it is a text box, it does not have a name.
It’s like not registering it in the household register after birth.

Yes, by the way, I would like to criticize China’s household registration system.

name is used when submitting the form.
In addition, this approach is wrong, because if you really want not to submit this text box, you don’t need to write the name attribute.


means that although it is a text box, it has no name.
It’s like not registering it in the household register after birth.

Yes, by the way, I would like to criticize China’s household registration system.

name is used when submitting the form.
In addition, this approach is wrong, because if you really want not to submit this text box, you don’t need to write the name attribute.
I can’t say whether it’s wrong or not. Although there is no name on the household registration book, this person exists as long as he is born.
The text box is the same. Although it has no id and the name is empty (the same as none), I can still get the value in it through
some method, such as $(input["type= 'text'"]).val()

means you cannot submit the form

The name attribute is generally used when submitting a form and processing submitted data on the server side
For example:

After submitting the form, you can get the content you entered in the text box through the name attribute username

source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template