Bootstrap Study (ii)-----modal modal frame

Source: Internet
Author: User

Generate popup (Modal) HTML code

<!--New Task pop-up box -<Divclass= "Modal Fade"ID= "Createprojectmodal"TabIndex= "-1"role= "Dialog"Aria-labelledby= "Createprojectmodallabel">    <Divclass= "Modal-dialog"role= "Document">        <Divclass= "Modal-content">            <formrole= "form"name= "Createprojectform">            <inputtype= "hidden"name= "ProjectID"/>            <Divclass= "Modal-header">                                 <!--pop-up box title -                <h4class= "Modal-title">New Task</h4>            </Div>            <Divclass= "Modal-body">//pop-up box content</Div>            <Divclass= "Modal-footer">                <Buttontype= "button"class= "Btn Btn-default"Data-dismiss= "Modal">Shut down</Button>                <Buttontype= "button"Data-complete-text= "finished!"AutoComplete= "Off"class= "Btn btn-primary"ID= "Saveprojectbtn">Save</Button>            </Div>            </form>        </Div>    </Div></Div>        

Modal Event:

function // modal box hidden before calling this method           }). On (function//  modal box show before calling this method           //  Settings Dialog title          $ (this). Find ('. Modal-title '). Text (' New task ');  }) ;//  Close the dialog box $ (' #createProjectModal '). Modal (' hide '); // Open the dialog box $ (' #createProjectModal '). Modal (' show ');

Bootstrap Learning (ii)-----modal modal box

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.