Of course in CF! That worked well. Thanks.

-----Original Message-----
From: Scott Weikert [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, January 30, 2007 2:24 PM
To: CF-Talk
Subject: Re: Javascript Onclick Question

[EMAIL PROTECTED] wrote:
> I have a form that has the following javascript next to a date input
> text input. When the button is pressed it simply clears the date input
> box. How would I get it to populate the box with today's date instead?

>
>   
Assuming you're doing this in CF... :D

onClick="document.yourFormName.form_date_signed.value='#DateFormat(Now()
, 
"mm/dd/yyyy")#';"

is one way. I'm sure there's a way to pull the current date via JS, I 
just don't know it off the top of my head.



~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Upgrade to Adobe ColdFusion MX7 
Experience Flex 2 & MX7 integration & create powerful cross-platform RIAs 
http:http://ad.doubleclick.net/clk;56760587;14748456;a?http://www.adobe.com/products/coldfusion/flex2/?sdid=LVNU

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:268104
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4

Reply via email to