Hello All,


I am new to Javascript and html.

I am generating a report on the webpage from database table.For easy accessing the table data I have put search fields Fromdate,Todate and for those i am using one search button.After getting the values particular fromdate to Todate. i want to clear those date fields after clicking the search button.

How can i achieve that.I'he attatched the code below please help me to fix this problem.

<form action="{#_voice_broadcast_report#}" method="post" name="form" onsubmit="return verify_broadcastform();">
<table align="center" width="90%" bgcolor="#DFDFDF" height="550px">


<tr><td align="center">
<h4 align="center">Voice Recording Report </h4>

<table width="80%">
<tr height="25">
<th width="64%" align="left" >Total Calls(Files): {$total_files}</th>
<td width="36%" rowspan="3">
<table width="100%">
<tr><td>
From Date</td><td>: </td><td>
<input type="text" name="from_date" class="t4" value="{$from_date}" /> <a href="javascript:cal9.popup();" style="text-decoration:none;"><img src="images/cal.gif" width="16" height="16" border="0" alt="Click Here to Pick up the date"></a></td></tr>


<tr><td> To Date</td><td>:</td><td> <input type="text" name="to_date" class="t4" value="{$to_date}" /> <a href="javascript:cal10.popup();" style="text-decoration:none;"><img src="images/cal.gif" width="16" height="16" border="0" alt="Click Here to Pick up the date"></a></td></tr><tr><td colspan="3" align="right"><input type="submit" value="Search"/></td>
</tr>

</table>


This is very urgent to me please help me out.

Thanks in advance,

Regards,
Swathi.