Submit a form using javascript

We can submit a form using its name, id, class and tag

<form id=”form” name=”form1″ class=”form”>
</form>

Suppose forms name is “form1”, then we can submit the form with jquery as below:

$(“form[name=’form1′]”).submit();