SitePoint Sponsor

User Tag List

Results 1 to 2 of 2

Thread: Form Help

  1. #1
    SitePoint Zealot allanlud's Avatar
    Join Date
    Jul 2012
    Location
    Meath, Ireland
    Posts
    120
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Form Help

    Hi all, I'm trying to add a date field to a form, but have no idea how to go about it.

    The form is being sent to an email when submitted and what I have in place of the date at the moment is a text input type. Can anyone give me help on how to create maybe a dropdown for arrival and departure dates, or help me get some sort of calendar implemented into a form.

    Thanks.
    Al.

  2. #2
    It's all Geek to me silver trophybronze trophy
    ralph.m's Avatar
    Join Date
    Mar 2009
    Location
    Melbourne, AU
    Posts
    24,165
    Mentioned
    453 Post(s)
    Tagged
    8 Thread(s)
    HTML5 has a new element that can do that, though it's not well supported yet. The alternative is to use a JavaScript date picker.

    Here is a useful link:

    http://www.html5tutorial.info/html5-date.php


Bookmarks

Posting Permissions

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