Forums

The forums ran from 2008-2020 and are now closed and viewable here as an archive.

Home Forums JavaScript Todays date as default value for input field

  • This topic is empty.
Viewing 1 post (of 1 total)
  • Author
    Posts
  • #40536
    Jami
    Member

    Hello all,
    I have an input field for the user to enter a date in, but most of the time they will want todays date, so I’m looking for some code, could be JS, PHP or jQuery. to put into my value=”” in the input box to save them the work.

    I’ve tried and the code shows not the date.
    I tried because I read that javascript would be easy toy for hackers in this situation.

    I need the date in this format 20130215 ymd

    Your ideas are appreciated.

Viewing 1 post (of 1 total)
  • The forum ‘JavaScript’ is closed to new topics and replies.