You're using cfform, right? Form.submit() does not drive the form
submission event. What you can do is look at your form page's html
source and find the javascript in the form tag that is called when the
form is submitted. Call the same functions in your button tag and it
should work.
- Matt
onClick=somefunction()
function somefunction() {
validation_goes_here
submit();
}
On Wed, 27 Mar 2002, Tim wrote:
I have a form that I wanted to restrict so that the user has to hit the Submit
button to enter the form, and not the Enter key. I included the following:
input
2 matches
Mail list logo