I am using the jQuery datepicker plugin for a project I'm working on, but noticed the following:
I changed the default styling so that the dates wouldn't be font-weight: bold but normal. This way I thought I could, with the help of an ajax call bold the dates that have appointments.
To do this, I use the onSelect and onChangeMonthYear events. This semi works. The problem is that when using onSelect: I go through the dates, bold the ones that have an appointment (I halt the JS with alerts and see this working), but it seems that the datepicker redraws the .ui-datepicker-calendar table after onSelect, removing my bold dates.
Is there an other way to approach this, am I doing something wrong maybe?
I am working on a little project with fullcalendar but while writing some callback functions stumbled upon an issue: Fullcalendar generates html that looks like this: <a><span></span><span></span><span></span></a>.
Now there is an eventClick callback that is fired when clicking on that <a> element. However, in that callback I would like to know which <span> element was clicked.
Does anybody know how I would do this? Thanks in advance!