Jquery easyui Tab

Source: Internet
Author: User
New Tab
1 2 $ ("# Add "). click (function () {3 index ++; // Add tab 4 $ ("# TT "). tabs ('add', {5 title: "new tab" + index, 6 content: 'tab body' + index, 7 iconcls: 'icon-save', 8 closable: true, 9 href: "url" 10 11}); 12 });
Tab Modification
1 $ ("# Update "). click (function () {2 Index ++; 3 4 var tab = $ ("# TT "). tabs ("getselected"); // or select item 5 $ ("# TT "). tabs ('update', {// modify 6 tab: tab, 7 OPTIONS: {8 title: "Update" + index, 9 iconcls: 'icon-save' 10} 11}); 12 });
Title: Title
Content: Content
Iconcls: panel display icon
Closable: whether to disable the default value false
Herf: Use href = "@ URL. Action (" uidemo2 ") in MVC to display the tab address ")

Jquery easyui API: http://www.jeasyui.com/documentation/index.php

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.