0

I need help as I'm trying to create a bookings system like http://www.strandpalacehotel.co.uk/ however I don't have the knowledge to code one from scratch so does anyone know where I can find a plugin?

I need: -Date From -Date To -Nights (to update with Dates) -Adults

All I can find are date pickers but nothing that auto updates the Nights field. Please help!!

Joseph Gregory
  • 579
  • 1
  • 7
  • 24
  • So... you want to find [the difference of two dates](http://stackoverflow.com/q/41948/901048)? – Blazemonger Jun 18 '12 at 19:29
  • I'd start by looking at jQuery UI datepicker: http://jqueryui.com/demos/datepicker/ – jsalonen Jun 18 '12 at 19:32
  • Basicly the exact same thing as http://www.strandpalacehotel.co.uk/ two datepiackers and a 'Nights' option that updates the datepickers. Thats the bit I'm finding difficult – Joseph Gregory Jun 22 '12 at 16:36
  • In face i just found this: http://stackoverflow.com/questions/1263482/jquery-ui-datepicker-using-2-date-fields-trying-to-get-date-difference and this shows exactly what I want except I want the nights field to be a fields – Joseph Gregory Jun 22 '12 at 16:55

1 Answers1

1

jQuery UI has a pretty ubiquitous datepicker (http://jqueryui.com/demos/datepicker/). Lots of other widgets in there that you might find useful, too.

Tyler Rash
  • 1,165
  • 1
  • 8
  • 19
  • Yeah I can make the datepicker work however I want to have another option field with "Number of Nights" that updates if two chosen dates have been selected. Also vice-versa if number of nights is selected the datepicker updates itself. – Joseph Gregory Jun 22 '12 at 16:29