Date as initial form value

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Caracol

    #1

    Date as initial form value

    Hi!

    Using javascript: How to add the client date as a field initial value.

    Thanks !!!
    --
    Facundo


  • Thomas 'PointedEars' Lahn

    #2
    Re: Date as initial form value

    Caracol wrote:
    [color=blue]
    > Using javascript: How to add the client date as a field initial value.[/color]

    Using client-side JavaScript and HTML 4.01:

    <script type="text/javascript">
    document.write(
    '<input value="'
    + functionToForma tTheDate(new Date())
    + '">');
    </script>
    <noscript>
    <input>
    </noscript>


    PointedEars

    Comment

    Working...