I believe you can also use "onchange" which is more dynamic.

not syntactically correct but the idea below:

<INPUT ..... onchange="setCountry();">

function setCountry() {
if (document.myForm.state.value  >2  and <14) or whatever
 { document.myForm.country.value="canada"}
else {
 document.myForm.country.value="usa"
} // end country check

}  // end setCountry()

--
Carina R. Cojeen
x a r d e s i g n s
web programming and design
www.xardesign.com
c. 416.434.8823
h. 416.778.6024


-
You are subscribed to the CFUGToronto CFTALK ListSRV.
This message has been posted by: carina cojeen <[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)

Reply via email to