---
title: "How to submit a more than one form using Javascript?"  
description: "How to submit a more than one form using Javascript?"  
author: "Danish Khan"  
published: 2012-11-01  
updated: 2020-09-15  
canonical: https://www.mindstick.com/interview/1565/how-to-submit-a-more-than-one-form-using-javascript  
category: "javascript"  
tags: ["javascript"]  
reading_time: 1 minute  

---

# How to submit a more than one form using Javascript?

\
Use document.forms[0].submit() for submitting one form.\
(0 refers to the index of the form – if you have more than one form in a page, then the first one has the index 0, second has index 1 and so on).

## Answers

### Answer by Danish Khan

\
Use document.forms[0].submit() for submitting one form.\
(0 refers to the index of the form – if you have more than one form in a page, then the first one has the index 0, second has index 1 and so on).


---

Original Source: https://www.mindstick.com/interview/1565/how-to-submit-a-more-than-one-form-using-javascript

Copyright © MindStick Software Pvt. Ltd. This Markdown version is provided for developers, AI systems, and offline reading.
