HighDots Forums  

Date as initial value in text field

Macromedia Dreamweaver Macromedia Dreamweaver Discussions (macromedia.dreamweaver)


Discuss Date as initial value in text field in the Macromedia Dreamweaver forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
tammy2772
 
Posts: n/a

Default Date as initial value in text field - 01-01-2009 , 10:22 PM






:confused;
Can someone help me set an initial value of today's date in a text field?
Any help would be appreciated.
Thank you.

Reply With Quote
  #2  
Old   
Michael White
 
Posts: n/a

Default Re: Date as initial value in text field - 01-02-2009 , 12:01 PM






tammy2772 wrote:
Quote:
:confused;
Can someone help me set an initial value of today's date in a text field?
Any help would be appreciated.
Thank you.
<head>
<script>
onload=function(){document.f.d.value=new Date();}
</script>
</head>
<body>
<form name="f">
<input type="text" name="d">

Mick


Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.