New to Kendo UI for jQuery? Start a free 30-day trial

Destroy

methods

Prepares the PromptBox for safe removal from DOM. Detaches all event handlers and removes jQuery.data attributes to avoid memory leaks.

<div id="promptbox"></div>
<script>
var promptbox = $("#promptbox").kendoPromptBox({
    placeholder: "This will be destroyed..."
}).data("kendoPromptBox");

promptbox.destroy();

$("#promptbox").remove();
</script>
Not finding the help you need?
Contact Support