jQWidgets Forums

jQuery UI Widgets Forums Lists ComboBox A problem with collapsing

This topic contains 1 reply, has 2 voices, and was last updated by  Peter Stoev 11 years, 8 months ago.

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
  • A problem with collapsing #30825

    Yuri Antipin
    Participant

    Hi! When I try to open two or more ComboBoxes the previously opened ComboBoxes stay expanded. How to make them automatically closable?

    The sample is here:

    <!DOCTYPE html>
    <html lang="en">
    <head>
    <meta charset="utf-8" />
    <title> </title>
    <link rel="stylesheet" href="styles/jqx.base.css"/>
    <script type="text/javascript" src="scripts/jquery-1.10.2.min.js"> </script>
    <script type="text/javascript" src="scripts/jqx-all.js"> </script>
    <script type="text/javascript">
    $(document).ready(function () {
    $('#c1').jqxComboBox({
    height: 20
    });
    $('#c2').jqxComboBox({
    height: 20
    });
    });
    </script>
    </head>
    <body>
    <div id="c1"></div>
    <div id="c2" style="margin-top: 10px;"></div>
    </body>
    </html>
    A problem with collapsing #30827

    Peter Stoev
    Keymaster

    Hi Yuri Antipin,

    You can simply bind to the “open” event and call the “close” method of the comboboxes which you wish to close.

    Best Regards,
    Peter Stoev

    jQWidgets Team
    http://www.jqwidgets.com

Viewing 2 posts - 1 through 2 (of 2 total)

You must be logged in to reply to this topic.