kubal5003 kubal5003 - 1 year ago 106
jQuery Question

jQuery - how to alter Datepicker settings after it has been initialized

I would like to bind to initialized datepicker "onSelect" function.

I've been trying hard to find a solution on the web, but was unsuccessful.

Anyone can tell me how to do it?

Answer Source

You can simply use the setter

$('#datepicker').datepicker("option", "onSelect", function(){alert('hi')});

fiddle here http://jsfiddle.net/nhmsZ/

Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download