Radiobuttons On Action Should Update The Text Field

I’m a newbie. I want to create two buttons in _form.php. The two buttons are “‘0’=>approve” and “‘1’=>Reject”. Now, I have a text field for date. I need to update it with current date when approve is clicked and null when reject is clicked. How can I do this.

Try this,

//ln _form.php

echo CHtml::radioButtonList(















		var today = new Date();

		&#036;('#textarea_id').val(today );




No Date gets updated for reject also and not showing null.

plz attach your _form.php