Results 1 to 2 of 2
Thread: onclick form command
-
04-17-2004, 07:14 PM #1Junior Guru Wannabe
- Join Date
- Mar 2003
- Posts
- 42
onclick form command
I have a javascript that checks form data, however, I don't know how to get the script to run when submit is pushed.
The name of the function or whatever its called is checkData() (basically makes sure each form object has an answer and alerts the user if it doesn't) and I was thinking I could just use the onclick command in the submit button but that doesn't seem to work.
So, my question is, how can I get checkData() to actually check the data?
-
04-18-2004, 03:06 AM #2Web Hosting Master
- Join Date
- Jul 2003
- Location
- Kuwait
- Posts
- 5,104
Code:<form [...] onsubmit="checkData()">