Hi,
i create a modal window and load in it an html file. in the html file there is a script.
when i close the window i use destroy() and remove()
but the script that there was in the modal window remains on the principal page..
how can i do for to destroy the script?
Thank you
1 Answer, 1 is accepted
0
Alexander Valchev
Telerik team
answered on 21 Jan 2013, 05:10 PM
Hi Francesco,
I suggest you to select the script element (probably by id or via more complex selector) and remove it from the DOM through the remove method. The approach is analogical to the way you remove widget's elements from the DOM.
Regards,
Alexander Valchev
the Telerik team
Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!