The name value here is empty. What does it mean?
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