Submit few forms in Drupal 7 I try to add  Poll-voting to my website, on page I addet 5 votings forms, I try to make submission of all 5 forms by one click instead of 5 clicking. I wrote this script :

 &lt;script language="javascript" type="text/javascript"&gt;
      function submitDetailsForm() {
           $('#poll-view-voting').submit();
       }
 &lt;/script&gt;


But this code submit first form only(the forms has one id).
Console.log retrieve this:

[form#poll-view-voting, context: document, selector: "#poll-view-voting", init:  function, jquery: "1.4.2", size: function…]
0: form#poll-view-voting
context: documentlength: 1
selector: "#poll-view-voting"
__proto__: Object[0]


How i can solve this issue, help please. I am new in Drupal 7 and JS.
Use Advanced Poll module. I think this may help you to solve your query.