The simple javascript form onsubmit has 2 handles?
source link: https://www.codesd.com/item/the-simple-javascript-form-onsubmit-has-2-handles.html
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.
The simple javascript form onsubmit has 2 handles?
<FORM name="form1" class="input" ACTION="<%WWW.CURRENTURL%>" METHOD=POST NAME=APPLFORM onsubmit="return Submitform(this) & return checkform(this);">
Can I use "&" to run 2 functions in ONSUBMIT in the FORM tag? will above work? sorry, my dev area limits me from running the code.
basically, Submitform(this) checks to make sure the disclaimer checkbox is check and checkform(this) executes the captcha.
any advice, input, help is greatly appreciated. thanks and happy 4th!!!
You should be able to just run it as if it was JS code.
onsubmit="Submitform(this);return checkform(this);"
Related Articles
javascript intercepted form onsubmit has no return value
The simple Javascript function does not work on the .ascx file
the simplest javascript form validation question ever
The HTML / Javascript form is automatically reset
What is the simple Javascript equivalent of .each and $ (this) when used together as in this example?
Html5 validation error on the simple javascript pull-down menu
The simple javascript increment does not work? (In fact, Protractor's problem is not javascript)
The simple HTML form with the Select disabled option is allowed to submit in Chrome and IE. Works well in Firefox
The simple javascript in Safari will not work
The simple contact form will not work - php
The simple javascript function does not work in IE7
How to update mysql by using an edit button that would send the current data in the simple CMS forms I did
The simple AngularJS form is not defined in Scope
The simple PHP form does not work
Recommend
About Joyk
Aggregate valuable and interesting links.
Joyk means Joy of geeK