Home / Free
JavaScripts / Forms /
Here
 |
Cut &
Paste Current date in form
II
|
Description: If you
have a "Today's Date" field in your form, why not let JavaScript
automatically fill it in for your visitors? This script uses drop down menu
boxes, allowing users to easily make changes to the
date.
Example: Notice how
today's date is selected by default.
Directions
Step 1: Insert the following
into the <HEAD> section of your page:
Step 1: Add the below form
into the <BODY> section:
Step 3: Finally, inside the
<BODY> tag itself, attach this onload event handler inside it, as
follows:
<BODY onload="SetToToday('FirstSelect');">