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 :
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
How i can solve this issue, help please. I am new in Drupal 7 and JS.