Initializing a form field on page load

Results 1 to 2 of 2

Thread: Initializing a form field on page load

  1. #1
    Join Date
    Dec 1969
    Posts
    9

    Default Initializing a form field on page load

    How can I initialize a particular field say date on a form with todays date when the form is first loaded.

  2. #2
    Join Date
    Dec 1969
    Posts
    2,849

    Default RE: Initializing a form field on page load

    In a text box, the VALUE property of the &#060;INPUT&#062; tag will set the default. You&#039ve got to be using an ASP page, and you can do:<BR><BR>&#060;INPUT TYPE=TEXT NAME=TodaysDate VALUE="&#060;%=Date%&#062;"&#062;<BR><BR>Happy Programming!

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •