When I attach functionality to an element, do I need to call before removing it from the DOM or handling jQuery? .widgetName('destroy')
.widgetName('destroy')
Try to use remove .
remove
I don't think this happens automatically, but again, I don't think you need to call the method destroy as it event handlers will be destroyed for you from the call to delete.
destroy
event handlers