Jump to content

Erase date


miniu

Recommended Posts

I have a table where you can put the dates, but i want to make also a button that says "clear date" that will clear the date. How can I make that? this is the code for the dates:

 

<tr>
    <td colspan="2" align="right"><font color="red"></font>  From Date:  </td>
                                <td width="25%"><font color="<?=$col?>">
                      <input type="text" name="txtfromdate" readonly="true" id="txtfromdate" size="15" value="<?=stripslashes($fromdate);?>"> <a href="#" onClick="getCalendar(document.getElementById('txtfromdate'));">Select Date</a></font></td>
                                <td width="8%"> To Date:</td>
						    <td width="51%"><font color="<?=$col?>">
						      <input type="text" name="txttodate" readonly="true" id="txttodate" size="15" value="<?=stripslashes($todate);?>">
		           <a href="#" onClick="getCalendar(document.getElementById('txttodate'));">Select Date</a></font></td>
						  </tr>

Link to comment
https://forums.phpfreaks.com/topic/197474-erase-date/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.