JQuery dynamically adds rows to tables and adds events to new rows _ jquery

Source: Internet
Author: User
JQuery dynamically adds rows to a table and keeps multiple blank rows at the bottom. This prevents too many lines at a time from leading to too much page content and slow response. Functions:

When you edit a table, the number of rows in the table is uncertain. If too many rows are added at a time, the page content may be too large and the response may be slow. This program allows you to dynamically Add rows in the table, always keep multiple blank rows at the bottom.

Effect:

I. original page

Ii. Add a new row in Table 1 and bind timepicker

Iii. Table 2 automatically adds rows and binds timepicker to new rows.

HTML source code:

   
   
     
 
 
Header 1 Header 1 Header 1
Header 2 Header 2 Header 2
Table end 1 Table end 2 Table end 3

Header 1 Header 1 Header 1
Header 2 Header 2 Header 2
Table end 1 Table end 2 Table end 3

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.