|
Posted by Jeff on 01/15/08 03:13
Chris wrote:
> I have two onsubmits I'd like to include in my <FORM...> tag and
> wanted to know before I go through the work of putting in all the code
> if this is even allowed. And if not then how should I be calling it?
>
> <FORM action="test.cgi" method="POST" onsubmit="csave()"
> onSubmit="return checkform()">
I'm going answer this, even though it's a rather dumb question and
off topic here, because I want you to have an answer. And I think most
here will misread the question. Next time post to comp.lang.javascript
after reading the FAQ there.
First, you can just call one javascript from inside the other, that's
the best way to do that.
otherwise:
<form onsubmit="csave();return checkForm()"...
You don't want two onsubmits, lowercase is correct here as it is for
form and action.
Jeff
>
> Thanks,
> Chris
Navigation:
[Reply to this message]
|