Results 1 to 2 of 2

Thread: Jason's calendar - check one day is after another

  1. #1
    Join Date
    Jun 2007
    Posts
    13
    Thanks
    1
    Thanked 0 Times in 0 Posts

    Default Jason's calendar - check one day is after another

    1) Script Title: Jasons Date input calendar

    2) Script URL (on DD): http://www.dynamicdrive.com/dynamici...oncalendar.htm

    3) Describe problem: The calendars work fine for both outward and return journeys on my booking form - using dd-mm-yyyy format.

    Is there a snippet of Javscript I can use in my form validation javascript to check that 'Retdate'
    Code:
    <script type="text/javascript">DateInput('Retdate', true)</script>
    is after
    'Outdate'
    Code:
    <script type="text/javascript">DateInput('Outdate', true)

  2. #2
    Join Date
    Jun 2007
    Posts
    13
    Thanks
    1
    Thanked 0 Times in 0 Posts

    Default

    I've been plugging away at this, trying to learn about how to create a date object which will relate to the script and handle the problem. I have also had a look at an airline booking form javascript to see if I can learn from that. But I have had no success.

    I really would appreciate a hand with this. It must be a fairly standard booking form requirement, so cracking this one should benefit many.

    Strictly, what I am after is the return date being on or after the outbound date.

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
  •