From what I can tell, I would have to use this.form so that my function would know fromm which object it is being called.
The problem now however: I am not calling that function from the form, but rather from another function that accepts the 'this' as a parameter.
IE:
Code: Select all
function anotherFunction(form, group) {
var buttons = document.forms[form].elements[group];
}
function someFunction(form) {
anotherFunction(form, "group")
}
<form onsubmit="return someFunction(this);" action="..." method="get">...other stuff in here...</form>