Code Monkey home page Code Monkey logo

Comments (5)

nizarmah avatar nizarmah commented on July 3, 2024

Hello, can you explain more what do you mean by disabling previous dates?
And maybe provide a small example about the dates selected for the appointments?

from calendar-javascript-lib.

manojrhr avatar manojrhr commented on July 3, 2024

I don't want to allow user to select previous dates than today and want to show those dates diable or not clickable by user.

from calendar-javascript-lib.

nizarmah avatar nizarmah commented on July 3, 2024

Then buddy, it is better if you use JQuery UI Date Picker, because my calendar does not support it, and the JQuery UI date picker would be more beneficial in your case.

from calendar-javascript-lib.

manojrhr avatar manojrhr commented on July 3, 2024

Thanks @nizarmah. Is it possible to highlight those dates on which I have appointments.

from calendar-javascript-lib.

nizarmah avatar nizarmah commented on July 3, 2024

Sadly, you cannot highlight the days which you have appointments. But you can disable those days if you have appointments.

To do that, I found you a StackOverflow thread that succeeds in doing that. Basically, before you show the date, you can check if this day is occupied or not; consequently, you disable it if it is.

https://stackoverflow.com/questions/2968414/disable-specific-days-of-the-week-on-jquery-ui-datepicker#2973696

from calendar-javascript-lib.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.