Entry
How do I populate 1/1/2001 into field #1 if the user put 12/31/2000 in field #1?
Aug 11th, 2006 15:58
David Alden, Wendy Simmons,
<html>
<script type="text/javascript" language="javascript">
function insertLineBreak(textInput){
if(textInput.value == "12/31/2000")
textInput.value="1/1/2001";
}
</script>
<form name="thisForm">
<!-- call the onchange and the onkeyup events so that
if a calendar program is used to enter the text or if the user types
the text in the input field -->
<input type="text" onchange="insertLineBreak(this)"
onkeyup="insertLineBreak(this)" name="thisText">
</form>
</html>