Home / Free JavaScripts / Forms / Here

Website Abstraction

Cut & Paste Current date in form II

Credit: Lee Hinder

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');">



spacer.gif (810 bytes)

.
CopyRight © 1997-2001 Website Abstraction. All rights reserved


spacer.gif (810 bytes)