Home > front end >  Input element
Input element

Time:10-26

Bosses, help me see
The checkbox in the how to use the reset attributes, with what effect?
How to use the file hidden image elements, especially the hidden, why I like to use, & lt; Input type="hidden" & gt; , is really gone, it is of little use as

CodePudding user response:

Reset input is one type of action is to reset the form to the initial state, input hidden can be hidden in the form does not need to display content, such as add and modify a total of a form, hidden can put id, add is don't have to fill in the id (generally add from growth) id in the database after the hidden inside the value of using the reset is not reset; Img you face image file for upload, there used to be the input type="image" button don't know there are no pictures

CodePudding user response:

reference 1/f, three dozen soy sauce response:
reset is one type of input, is used to reset the form to the initial state, input hidden can be hidden in the form does not need to display content, such as add and modify a total of a form, hidden can put id, add is don't have to fill in the id (generally add from growth) id in the database after the hidden inside the value of using the reset is not reset; Img image file for upload your face, there used to be the input type="image" buttons don't know now there is no

Thank you, I see,

CodePudding user response:

Reset is the reset button, nothing to do with the checkbox, the role is to restore all the form elements in the entire form as the initial default values,
The file is used to upload files,
Image is to load a picture, and the default for the form submit button,
Hidden is hidden for form a submit data, hidden in order not to let the user see the submitted data, the value is hidden when the form submission will be submitted together with,

CodePudding user response:

Hidden need according to the business, such as do corresponding tip password mistake, or hidden,
  • Related