Search code examples
jquerytimepicker

how can I destroy a wvega timepicker


I need to destroy a timepicker but there's no doc on how to call the method:

var tp = $('.timefield').timepicker();

Solution

  • Yes you are right there's no mention on this in their docs. but I've used it; this is how you destroy wvega timepicker so that it behaves like a regular text field

    $('.timefield').timepicker('destroy');