I have three check boxes on a page.  How can I get the following to work
without writing 3 different functions.

<input type="checkbox" name="Ret_Attempt1" value="1" onClick="TimeStamp(1)">
<input type="checkbox" name="Ret_Attempt2" value="1" onClick="TimeStamp(2)">
<input type="checkbox" name="Ret_Attempt3" value="1" onClick="TimeStamp(3)">

function TimeStamp(t){
 var today = new Date();
 var oform = document.frmret;
 if(oform.Ret_Attempt1.checked)
  oform.Ret_Att_Time1.value =  today;
 else oform.Ret_Att_Time1.value =  "";
}




---
You are currently subscribed to activeserverpages as: [email protected]
To unsubscribe send a blank email to [EMAIL PROTECTED]

Reply via email to