how to unbind e.g datepicker
hi,
i'm not sure how to unbind a datepicker...
html is:
Date: <input type="text" id="datepicker">
<a href="#" id="load">load datepicker</a><br />
<a href="#" id="unload">unload datepicker</a><br />
javascript:
$(document).ready(function() {
var loadfn = function () {
$("#datepicker").datepicker({
showOn: 'button',
buttonImage: 'templates/images/calendar.gif',
buttonImageOnly: true
});
};
$("#load").click(loadfn);
});
is there a possibility to use something like
$("#unload").unbind('click', unloadfn) ?
how looks this function like?
or must i use datepicker( "disable" )?
best regards m
cologne