Thursday 15 March 2012

Difference between <input type='button' /> and <input type='submit' /> in HTML
  • Button: button 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.
  • Submit: buttons will submit the form they are in when the user clicks on it.

1 comment:

  1. It is very important when you programming with JavaScript and PHP.

    ReplyDelete