If you check your html code you will see something like this <form .... action="abcd.html">
. The action tag may or may not be a html page, it could be a .php, .aspx or just an url. $("#form1").submit()
will post the data to this page/url and then that page will process the data.
$("#form1").submit()
will post the data of the form to the url in the action tag of the form while $("#button1").click()
will just trigger the click event.