Results 1 to 2 of 2
  1. #1

    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?

  2. #2
    Join Date
    Jul 2003
    <form [...] onsubmit="checkData()">
    In order to understand recursion, one must first understand recursion.
    If you feel like it, you can read my blog
    Signal > Noise

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts