jQWidgets Forums

jQuery UI Widgets Forums Dialogs and Notifications Window Hiding the Div tag

This topic contains 3 replies, has 2 voices, and was last updated by  Peter Stoev 10 years, 9 months ago.

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
  • Hiding the Div tag #61139

    Sayan
    Participant

    Script Tag:::
    $(“#Button1”).jqxButton({ width: ‘150’ });
    $(“#Button1″).on(‘click’, function () {
    $(‘#Cust_window’).jqxWindow(‘Show’);
    $(‘#Cust_window’).jqxWindow({
    showCollapseButton: true, height: 150, width: 750,showCloseButton:true

    });
    });

    Window Div ::::
    <div id=”Cust_window”>
    <div>My Window</div>
    <div style=”overflow:hidden” >
    <table align=”center”>
    <tr align=”left”>
    <td > Name</td> <td/>
    <td ><input id=”Cust_Name” value=”Cust_Name” /></td>
    <td/>

    <td > Designation </td> <td/>
    <td><input id=”Cust_Desig” value=”Cust_Desig” /></td>
    <td/>
    </tr>

    </table>

    </div>

    But the div is visible even on page load . I need the div to be visible only when the button1 is clicked. Please help

    Hiding the Div tag #61141

    Peter Stoev
    Keymaster

    Hi Sayan,

    Where did you find in the jqxWindow’s documentation a method called “Show” ? Documentation link: http://www.jqwidgets.com/jquery-widgets-documentation/documentation/jqxwindow/jquery-window-api.htm. I would suggest you to read the documentation and examples before trying to use any widget.

    Best Regards,
    Peter Stoev

    jQWidgets Team
    http://www.jqwidgets.com

    Hiding the Div tag #61142

    Sayan
    Participant

    Sorry,
    I did use $(‘#Cust_window’).jqxWindow(‘open’);
    I typed it wrong.

    Hiding the Div tag #61143

    Peter Stoev
    Keymaster

    Hi Sayan,

    The link I posted you shows how to use the “open” method.

    Best Regards,
    Peter Stoev

    jQWidgets Team
    http://www.jqwidgets.com

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

You must be logged in to reply to this topic.