i have one statement .that statement has two combo field(Entered/Approved) .
when combo field is marked as Approved then date isto be moved to date field.and date should not moved to date field when entered is selected from combo feild
i mean i want to move todays date if and only if Approved is selected from combo field

Since i don't have any reference in your code. I will just play a simple demo based on what you wanted to happend. Here's the basic to deal with it...

<html>
<head>
<title><!--Sample--></title>
<script type="text/javascript">
<!--
document.onclick = function(e) {
e = e ? e : window.event;
t = e.target ? e.target : e.srcElement;
var approved = frm1.rdo[1];
var now = new Date();
var month = (now.getMonth()+1);
var date = now.getDate();
var year = now.getFullYear();
month = ( month < 10 ? '0' : '' ) + month;
date = ( date < 10 ? '0' : '' ) + date;
var today = month + '-' + date + '-' + year;

if ( t.name && t.name == 'rdo' && approved.checked ) { frm1.txt.value = today; }
else { alert('Do your things from here!') }
}
//-->
</script>
</head>
<body>
<form name="frm1" action="javascript:void(0);" onSubmit="return false;">
<label><input type="radio" name="rdo" value="Entered" />&nbsp;Entered</label> <label><input type="radio" name="rdo" value="Approved" />&nbsp;Approved</label><br /><br />
<label> Date Field: </label> <input type="text" name="txt" value="" style="text-align:center;color:red;font-weight:700;width:100px;" />
</form>
</body>
</html>
This article has been dead for over six months. Start a new discussion instead.