Question

Im using the following plugin to display a calendar -(plugin URL) does anyone know if its possible to submit a form when a calendar date is clicked and have that result come through into PHP so i can use $_POST to get what i clicked?

Cheers,

Was it helpful?

Solution

It looks to me as if the plugin sends you events. You can handle "dateSelected", it seems, and in that handler you can submit your form.

$('input.whatever').datePicker().bind("dateSelected", function(ev, date, td, selected) {
   if (selected) {
     $('#your_form').submit();
   }
});
Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top