destroyReturns: jquery element

Remove datepicker functionality from the element.

Examples

sample

    
 <button class="gj-button-md" onclick="datepicker.destroy()">Destroy</button>
 <input id="datepicker" width="312" />
 <script>
     var datepicker = $('#datepicker').datepicker();
 </script>