JavaScript date validation

  • Status Concluído
  • Budget $30 - $250 AUD
  • Total Bids 62

Descrição do Projeto

The booking form on my client's website has a JS datepicker that lets users choose a Departure date and an Arrival date.

The problem: Sometimes a user will select dates that are in the past.

The solution: We need is some Javascript that:

1) shows an alert when a user selects any date that is in the past.

2) shows and alert when the user selects an arrival that is BEFORE the selected departure date (arrival dates should always be after the departure date).

Please also be aware that the date pickers use the Australian date format (dd-mm-yyyy) and must remain that way.

You can see the form in action:

1) Visit [url removed, login to view]

2) Click the big pink 'Instant Quote & Booking' button.

3) Enter any number of days and click the 'Book Now' button.

4) Use the date pickers.

I can provide access to a duplicate of the website if required.

Obter orçamentos grátis para um projeto como este
Concluído por:
Habilidades Requeridas

Pretende fazer algum dinheiro?

  • Definir seu orçamento e prazo
  • Esboce sua proposta
  • Seja pago por seu trabalho

Contratar freelancers que também ofereça neste projeto

    • Forbes
    • The New York Times
    • Time
    • Wall Street Journal
    • Times Online