I\'ve got a date text field I wish to only sometimes attach a DatePicker to, because I have some of my own text-handling scripts which handle partial date strings.
This removes .datepicker COMPLETELY:
.datepicker
$( selector ).datepicker( "destroy" ); $( selector ).removeClass("hasDatepicker").removeAttr('id');
Documentation: http://docs.jquery.com/UI/Datepicker#method-destroy also read the comments below