|
|
Q169 When using an image input type in a form how can I perform form validation on form submission?
irt.org | Knowledge Base | JavaScript | Form 5 | Q169 [ previous next ] Q169 When using an image input type in a form how can I perform form validation on form submission?The input type image, is not officially part of specification of a form. The following script attempts to overcome this problem. Rather than using an input type of image it uses a normal image link. The call to the check() function invokes the validate() function to perform the normal validation. The result then dictates whether the form is submitted using the submit() method.
Feedback on 'Q169 When using an image input type in a form how can I perform form validation on form submission?' |
-- div -->
|