Skip to content
Related Articles

Related Articles

jQuery Mobile Collapsibleset enable() Method

View Discussion
Improve Article
Save Article
Like Article
  • Last Updated : 13 Jan, 2022

jQuery Mobile is a web-based technology that is used to make responsive content for websites that can be accessed on all types of smartphones, tablets, and desktops.

In this article, we will be using the jQuery Mobile Collapsibleset enable() method to enable the collapsibleset and this also does not accept any parameter.


$( ".selector" ).collapsibleset( "enable" );

Arguments: This method does not accept any argument.

Return Value: This method enabled the effective widget.

CDN Link: Below are some jQuery Mobile scripts that will be needed for your project so add these to your project.

<link rel=”stylesheet” href=”//”>
<script src=”//”></script>
<script src=”//”></script>

Example: This example describes the uses of the jQuery Mobile Collapsibleset enable() method.


<!doctype html>
<html lang="en">
    <meta charset="utf-8">
    <meta name="viewport" 
          content="width=device-width, initial-scale=1">
    <link rel="stylesheet" 
    <script src=
    <script src=
        $(function () {
            $("#btn").on('click', function () {
        $(document).ready(function () {
        <div data-role="page" id="page1">
            <div data-role="header">
                <h1 style="color:green;">GeeksforGeeks</h1>
                    jQuery Mobile Collapsibleset Enable() Method
            <div role="main" class="ui-content">
                <div data-role="collapsibleset" 
                     data-corners="false" id="divID">
                    <div data-role="collapsible" 
                            HTML stands for HyperText Markup 
                            Language. It is used to design 
                            web pages using a markup language.
                            HTML is the combination of 
                            Hypertext and Markup language. 
                            Hypertext defines the link 
                            between the web pages.
                    <div data-role="collapsible">
                            CSS (Cascading Style Sheets) is 
                            a stylesheet language used to 
                            design the webpage to make it 
                            attractive. The reason of using 
                            CSS is to simplify the process 
                            of making web pages presentable.
                    <div data-role="collapsible">
                            JavaScript is the world most 
                            popular lightweight, interpreted 
                            compiled programming language. 
                            It is also known as scripting 
                            language for web pages. 
            <input type="button" id="btn"
                style="width:250px;" value="Enable">


jQuery Mobile Collapsibleset enable() Method


My Personal Notes arrow_drop_up
Recommended Articles
Page :

Start Your Coding Journey Now!