Type=button is simply a button function;
Type=submit is to send a form; If so, can you replace button with submit?
Sumit submit the form, the button needs to bind the event can not be used to submit data can not, for example, you want to implement a partial refresh, you can not use the Sumit, with the button to bind the event, if the event with the Sumit binding events, the trigger event colleagues, will also submit the form of ...
button-Normal button, submit-submit button; The Submit button generally appears on the Web page need to submit information to the server is only used, and button is to create a button, for the implementation of the button will be what happens this does not necessarily, the test Page editor decided, For example, on the same day Web form, when user input may enter errors or deviations, you can create a button-clear (reset) button on a Web page, a form can have multiple normal buttons, and at least one submit button (to submit a form page).
Original link: http://zhidao.baidu.com/link?url= Pkcttjhjvhtp3xqlrt3jkem17qjkcmtn3cvwickbg-csgp64gufslghqjc7lm-zwon4cc526udiismtnxfm5b_
What is the difference between button buttons and submit in HTML?