Here is an subset of one of my existing scripts.
<script language="JavaScript">
function setMsg(){ // start function
theOldCode = "The old code list is " + document.theForm.oldCode.value;
theNewCode = ". The new code is " + document.theForm.newCode.value;
msg = theOldCode + theNewCode ;
return msg;
} //end function
</script>
and then the form
<cfFORM ACTION="YourAction.cfm" METHOD="post" name="theForm"
onSubmit="return window.confirm(setMsg())">
form stuff
</cfform>
Is that what you meant?
***********************
Good day everyone,
I have a form where there is a drop down list that has all the provinces of
Canada and all the US states. Now when the user selects a Canadian province
I want the Country field to get field with the word Canada and the same for
the US. My drop down list has Canadian provinces numbers from 2 to 14 and
the US States are from 16 to 65. I know that you can pass a var to a
JavaScript but I don't know to code it. Any help would be grateful.
-
You are subscribed to the CFUGToronto CFTALK ListSRV.
This message has been posted by: [EMAIL PROTECTED]
To Unsubscribe, Please Visit and Login to http://www.CFUGToronto.org/
Manager: Kevin Towes ([EMAIL PROTECTED]) http://www.CFUGToronto.org/
This System has been donated by Infopreneur, Inc.
(http://www.infopreneur.net)