Quantcast
Channel: Adobe Community : Unanswered Discussions - ColdFusion
Viewing all articles
Browse latest Browse all 5794

more than 1 function in cfform tag "onSubmit"

$
0
0

i need to call atleast 3 javascript functions in a form

 

using "onSubmit" works fine with one function but when i try to add another nothing happens....

 

 

<cfform

action="postpage.cfm" method="POST"

target="_self"

onsubmit="if(document.getElementById('Agree').checked) { return true; } else { alert('You must agree to the Terms and Conditions'); return false; }">

 

 

"return checkEmail(this);" is one of the funtions. it checks to see if 2 cfinputs are the same

 

how do i add multiple functions to onSubmit

 

tnx in advance


Viewing all articles
Browse latest Browse all 5794

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>