-1

I have dates in my script related to some teaching lessons. Each lesson has a maximum number of students. When a lesson reached this amount, all the other users will be not able to register to that lesson. I did it in a PHP format with MySQL using HTML-SELECT and Javascript, but I need a way to show a Calendar with the available dates. I've tried to use the jQuery, but I couldn't control the accessible dates on the calendar.

Can you suggest what I need to do?

Jonathan Leffler
  • 730,956
  • 141
  • 904
  • 1,278
  • I tried to use a basic SELECT menu, but I want the user see the available dates in a calendar. for example the not available dates will be without link, and the available one with blue link. – Othman Abahossain Mar 28 '12 at 02:57

1 Answers1

1

Try jquery ui datepicker. You are able to control dates without issue. There are many topics about it here on stackoverflow as well as many examples at jqueryui.com

http://jqueryui.com/demos/datepicker/

If you decide to use this, here is a topic that explains in great detail how exclude specific dates, etc. Can the jQuery UI Datepicker be made to disable Saturdays and Sundays (and holidays)?

Community
  • 1
  • 1
jivetek
  • 256
  • 2
  • 12