Difference between <input type='button' /> and <input type='submit' />

前端 未结 8 2178
不思量自难忘°
不思量自难忘° 2020-11-22 05:17

What is the difference between HTML and ?

8条回答
  •  情深已故
    2020-11-22 05:46

    buttons will not submit a form - they don't do anything by default. They're generally used in conjunction with JavaScript as part of an AJAX application.

    buttons will submit the form they are in when the user clicks on them, unless you specify otherwise with JavaScript.

提交回复
热议问题