On Jan 3, 3:17 am, TimW66 <timwilso...@gmail.com> wrote:
> Thanks for the response. I changed the name attribute to be "save",
> but that didn't work either.
Change the name and the id, neither should have a value of "submit".
> I think what's happening is there are
> other event handlers getting executed in the for loop, and one of
> those is returning a value that val gets set to, such that it doesn't
> propagate to the next function; which in my case is the browser
> submit. Of course, I have no idea which event handler is returning a
> value that is causing val to get set that way.
Calling a form's submit method will submit the form, but doesn't
create a submit event so the listener isn't called. The only value
that matters is the one returned to the handler, only false will stop
the form submitting.
--
Rob