6 Jun
2000
6 Jun
'00
4:40 p.m.
I have a DTML document that is keeps track of issues for a project. I am using JScript to automatically input a date value when the users checks a box. However if there is a date already in the field I do not want the script to change it. Below is the onchage event for the check box. I think the comparison is failing. f is the form datefixed is a text entry box. If I try f.datefixed.value != '' it works, however this is the opposite of what I want. Any clues how I can do this. Thanks <SCRIPT LANGUAGE="JavaScript"> function updateDateFixed(f) { if (f.datefixed.string == '') { today = new Date() f.datefixed.value = (today.getMonth()+1)+'/'+today.getDate() +'/'+today.getYear() } } </SCRIPT>
9435
Age (days ago)
9435
Last active (days ago)
0 comments
1 participants
participants (1)
-
Stuart Foster