![]() |
VOOZH | about |
jQuery Mobile is a set of HTML5 based user system interaction widget toolbox used for various purposes build on top of jQuery. It is designed to build fast and responsive sites accessible to mobile, tabs, and desktops. The destroy() method is used to remove the selectmenu functionality completely and will return the element back to its pre-init state.
Syntax:
$("selector").selectmenu("destroy");
Parameters: This method does not accept any parameters.
CDN Links: First, add jQuery Mobile scripts needed for your project.
<link rel=”stylesheet” href=”https://code.jquery.com/mobile/1.5.0-alpha.1/jquery.mobile-1.5.0-alpha.1.min.css%E2%80%9D>
<script src=”https://code.jquery.com/jquery-3.2.1.min.js%E2%80%9D></script>
<script src=”https://code.jquery.com/mobile/1.5.0-alpha.1/jquery.mobile-1.5.0-alpha.1.min.js%E2%80%9D></script>
Example:
Output:
👁 Mobile Selectmenu destroy() MethodReference: https://api.jqueryui.com/selectmenu/#method-destroy