I gotta admit, I didn't think this would work, but it did. I thought it didn't matter what the name and/or id of an input box was, as long as the id was unique. Guess I was wrong. Thanks for your help, I would have never thought of that!
On Jan 2, 4:01 pm, RobG <rg...@iinet.net.au> wrote: > 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