+ 2

Input type button and submit

what is the difference between <input type="button"> and <input type="submit"> or are they just the same?

1st Jan 2018, 4:31 PM
Rodrigo Tallar
Rodrigo Tallar - avatar
2 odpowiedzi
1st Jan 2018, 4:41 PM
The Coding Sloth
The Coding Sloth - avatar
+ 3
A submit button is the default event trigger for a HTML form submission, you don't need to code anything to have it tell the form to submit its data. A button may require a code dedicated to have it perform a certain action.
1st Jan 2018, 4:45 PM
Ipang