Click here to Skip to main content
15,886,362 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
i want to create a calender if u take the crusor on a date it will display informtion regarding on that date
Posted

1 solution

You can do this using beforeShowDay event like:

JavaScript
$(document).ready(function() {
    $('#txtDate').datepicker({
        beforeShowDay: function(date) {
            var tooltip = "Today's date: " + date;
            return [true, "someclass", tooltip];
        }
    });
});


DEMO: FIDDLE[^]
 
Share this answer
 
v4
Comments
Member 11970398 28-Sep-15 2:58am    
sorry could not understand
Palash Mondal_ 28-Sep-15 3:03am    
Inside the beforeShowDay event you can look for which day are you hovering in, and based on that display information regarding on that date by modifying the tooltip as shown in the example above. I hope this would you getting started.
Member 11970398 29-Sep-15 2:00am    
sorry dear not getting what u are saying...

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900