Welcome!

And don't forget to edit your signature & profile.

 

Icon

Statistics

  • Total posts 23318
  • Total topics 4048
  • Total members 5574
  • Our newest member
    ALF5583

TOP POSTERS

Date Picker to check availability

Discussions about various topics.
   

Date Picker to check availability

Postby brad_langdon » Wed Nov 04, 2009 6:01 pm

Can anyone tell me how to use a jquery date picker in a way that it checks whether or not the selected date is available?

So basically if a date is not available it would gray out the unavailable dates or something similar. I want to use it for a booking system but I am not sure how to do this part. I guess it would have to fetch the info from a database or could it all be done somehow in the javascript file?

Thanks ;)
brad_langdon
Smashing <frame>
 
Posts: 17
Joined: Fri Mar 27, 2009 5:53 pm
Location: New Zealand
   

   

Re: Date Picker to check availability

Postby jock » Thu Nov 05, 2009 7:14 am

I believe you can use the beforeShowDay function - http://docs.jquery.com/UI/Datepicker#ev ... oreShowDay to make the date greyed out. How you pick out whether the date is available or not is up to you, I guess you'd use PHP to get a list of unavailable dates
User avatar
jock
Smashing <div>
 
Posts: 178
Joined: Tue Feb 10, 2009 6:03 am
Location: Scotland
   


Return to Web Talk



Who is online

Users browsing this forum: No registered users and 1 guest