You’re done with a particular plugin, and you want your element back the way it was. This is bigger than disable; this is un-init.
Call the destroy method:
Calling the destroy method will completely un initialize that element as that plugin. It will remove any classes added by the init or any later method call or event. If the init caused the element to be wrapped, it will unwrap. It’s like a big undo.
Destroying a jQuery UI plugin doesn’t remove the element from the DOM. It simply removes that plugin state saved on that element, putting the element back as close as possible to its pre-init state. After a jQuery UI plugin is destroyed, it can be initialized as the same again.
If you want to both destroy and remove a plugin element, you can simply call .remove(). The destroy method will be called automatically by jQuery UI as it’s removed. This is true even if the element has been initialized as more than one jQueryUI plugin.
J Query Related Interview Questions
|HTML 4 Interview Questions||HTML Interview Questions|
|HTML 5 Interview Questions||Zend Interview Questions|
|JqueryUI Interview Questions||Dynamic HTML Interview Questions|
|XQuery Interview Questions||jQuery Mobile Interview Questions|
J Query Related Practice Tests
|HTML 4 Practice Tests||HTML Practice Tests|
|HTML 5 Practice Tests||Zend Practice Tests|
|PHP and Jquery Practice Tests||J Query Practice Tests|
|CodeIgniter Practice Tests||Dynamic HTML Practice Tests|
All rights reserved © 2020 Wisdom IT Services India Pvt. Ltd
Wisdomjobs.com is one of the best job search sites in India.