var oldGenerateHTML = $.datepicker.constructor.prototype._generateHTML; $.datepicker.constructor.prototype._generateHTML = function(){ oldGenerateHTML.apply(this, arguments); ... }