JQuery Easyui Window – Create a simple window

Source: Internet
Author: User

JqueryEasyui Window – Create a simple window

Creating a window is very simple, we create a DIV tag:

<div id= "Win" class= "Easyui-window" title= "My window" style= "WIDTH:300PX;HEIGHT:100PX;PADDING:5PX;" >    Some content.</div>

  

Now run the test page and you will see a window displayed on your screen. We don't need to write any JavaScript code.

If you want to create a hidden window (Windows), remember to set the ' Closed ' property to ' true ' value, you can call the ' open ' method to open the window:

<div id= "Win" class= "Easyui-window" title= "My window" closed= "true" style= "width:300px;height:100px;padding:5px;" >    Some content.</div>

  

$ (' #win '). Window (' open ');

  


As a final example demonstration, we create a login window (Windows):

<div id= "Win" class= "Easyui-window" title= "Login" style= "width:300px;height:180px;" >    <form style= "padding:10px 20px 10px 40px;" >        <p>name: <input type= "text" ></p>        <p>pass: <input type= "Password" ></p >        <div style= "Padding:5px;text-align:center;" >            <a href= "#" class= "Easyui-linkbutton" icon= "Icon-ok" >Ok</a>            <a href= "#" class= " Easyui-linkbutton "icon=" Icon-cancel ">Cancel</a>        </div>    </form></div>

  


JQuery Easyui Window – Create a simple window

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.