Hello folks,

This has to be something simple as I've seen example of ppl getting it to
work but I'm having problems running some JS on a cfinput type datefield.

Part of the code
----

<script type="text/javascript">

 function calcAge(){
alert('calc age');
return true;
}

</script>


<cfform name="patient_form" action="patient_action.cfm" method="post">

<tr>
<td><b>Birthdate:</b></td>
<td><cfinput mask="DDMMMYYYY" name="patient_bdate"  type="datefield"
value="" onChange="calcAge()"></td>
<td><b>Age:</b></td>
<td><cfinput type="text" name="patient_age" value=""></td>
</tr>

----

I've also tried onClick (Works if I click on the input box but not the
calendar icon), OnError, onValidate, onKeyDown, onKeyUp.


~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Want to reach the ColdFusion community with something they want? Let them know 
on the House of Fusion mailing lists
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:328746
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4

Reply via email to