Tyfud Posted August 23, 2001 Posted August 23, 2001 Has anyone figured out how to get the onSubmit() to work within the submit name -NEW or -EDIT? It refuses to proccess/validate the onSubmit method. It even refuses to performa simple window.alert(), I can get the onClick to work. Right now it submits thorugh the form reguardless of returning false to the onSubmit method. I appriciate any help.
AndreasBoehmer Posted August 24, 2001 Posted August 24, 2001 I think you have to put the onSubmit into the form tag, not the submit button. So: <form onSubmit="yourJavascript()"> This should work.
elvis_impersonating_penguin Posted August 24, 2001 Posted August 24, 2001 to make it work right you will need to make it look like this <form onSubmit="return yourJavascript()">
Recommended Posts
This topic is 8491 days old. Please don't post here. Open a new topic instead.
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now