I have form with input and button that has type="submit". When i am trying to create a submit event i got an error "submit is not a function".
I was trying to google this problem, but found only one solution, that is to change all names and ids "submit".
html
<form action="" className="testform">
<input type="text" name="entry.1385083426"/>
<button type="submit">Send</button>
</form>
js
var forma = document.getElementsByClassName("testform");
forma.submit(function(e){
e.preventDefault();
var formData = this;
console.log(this);
});