Skip to content
Related Articles

Related Articles

Improve Article
Save Article
Like Article

jQWidgets jqxDocking hideCloseButton() Method

  • Last Updated : 31 Oct, 2021

jQWidgets is a JavaScript framework for making web-based applications for PC and mobile devices. It is a very powerful, optimized, platform-independent, and widely supported framework. The jqxDocking is used for representing a widget to manage multiple windows and also the layout of a web page. Here each window in the specified jqxDocking can do multiple tasks such as it can be dragged around the Web page, docked into docking zones, removed from the docking, collapsed into a minimized state for hiding its content, and also can be expanded for displaying its content.

The hideCloseButton() method is used for hiding the close button of a specific window of the specified jqxDocking.


$('#jqxDocking').jqxDocking('hideCloseButton', 'windowId');

Parameters: This method accepts a parameter that is illustrated below:

  • windowId: This is the id of a window whose close button is going to be hidden.

Return values: This method does not return any values.

Linked Files: Download jQWidgets from the given link. In the HTML file, locate the script files in the downloaded folder.

<link rel=”stylesheet” href=”jqwidgets/styles/jqx.base.css” type=”text/css” />
<script type=”text/javascript” src=”scripts/jquery.js”></script>
<script type=”text/javascript” src=”jqwidgets/jqxcore.js”></script>
<script type=”text/javascript” src=”jqwidgets/jqxdocking.js”></script>
<script type=”text/javascript” src=”jqwidgets/jqxwindow.js”></script>

Example: The below example illustrates the jQWidgets jqxDocking hideCloseButton() Method. In the below example, the close button of the second window is being hidden.


<!DOCTYPE html>
<html lang="en">
    <link rel="stylesheet" href=
    "jqwidgets/styles/jqx.base.css" type="text/css"/>
    <script type="text/javascript" 
    <script type="text/javascript" 
    <script type="text/javascript" 
    <script type="text/javascript" 
        <h1 style="color: green;">
            jQWidgets jqxDocking hideCloseButton() Method
        <div id="jqx_Docking" style="margin: 25px;" 
                <div id="First_Window">
                    <div>First Window</div>
                        <h8>Content for the first window</h8>
                <div id="Second_Window">
                    <div>Second Window</div>
                        <h8>Content for the second window</h8>
        <input type="button" style="margin: 29px;" 
         value="Hide the close button of the second window"/>
        <div id="log"></div>
        <script type="text/javascript">
            $(document).ready(function () {
                    width: 250
                        width: 350
                    'click', function () {
                            'hideCloseButton', 'Second_Window');



My Personal Notes arrow_drop_up
Recommended Articles
Page :

Start Your Coding Journey Now!