JQuery Datepicker Issue

Hello

I’m struggling to get the jquery datepicker to work - in particular I want to set a minimum date on my forecastfrom field. You need to click “Buy Now” to get to the form.

http://ineedaweatherforecast.co.uk/#

This is my jquery code:

<script>
     $( "#forecastfrom").datepicker({ minDate: 0 });
</script>

I’m sure it is something obvious.

Thanks
James`

Have you added the jquery datepicker js and css?

e.g. Something like this:

<link rel="stylesheet" href="//code.jquery.com/ui/1.11.4/themes/smoothness/jquery-ui.css">
  <script src="//code.jquery.com/jquery-1.10.2.js"></script>
  <script src="//code.jquery.com/ui/1.11.4/jquery-ui.js"></script>

Thanks Paul - for some reason I thought that it was part of the main jquery specs.

One of those days yesterday, I was on a train trying to work, spent an hour racking my brain on this, then my surface decided to spend 2 hours restarting and I’ve now realised I left my charger on the train!

Much appreciated.

lol - we all have days like that :smile:

This topic was automatically closed 91 days after the last reply. New replies are no longer allowed.