Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 4333744
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 21, 20262026-05-21T10:26:04+00:00 2026-05-21T10:26:04+00:00

I was wondering if it is possible to replicate a block of HTML directly

  • 0

I was wondering if it is possible to replicate a block of HTML directly under the other one.

I have a table, with a ‘add row’ button underneath it, when a user clicks the ‘add row’ button, i need it to replicate the following HTML

<tr style="height: 31px;">
<td style="background-color: #e4e4e4;">
    <select name="timetocall" id="timetocall" style="width: 159px; margin-left: 8px;">
        <option value="residential" selected>Residential</option>
    </select>       
</td>
<td style="background-color: #e4e4e4;">$ <input type="text" value="120,000.00" name="emailaddress" id="emailaddress" style="width: 151px;" maxlength="256"></td>
<td style="background-color: #e4e4e4;">$ <input type="text" value="420,000.00" name="emailaddress" id="emailaddress" style="width: 151px;" maxlength="256"></td>
</tr>

Is this possible at all?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-21T10:26:05+00:00Added an answer on May 21, 2026 at 10:26 am

    Give the <tr> an ID, e.g. id="template", then:

    $('#template').clone().removeAttr('id').appendTo('table > tbody');
    

    You might also want to replace any IDs that will be cloned, such as id="timetocall" and replace them with classes, since all IDs should be unique.


    Here’s a demo: http://jsfiddle.net/EGp6Q/.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Hi im wondering if its possible to add a asp button to the code
I'm wondering if its possible to add new class data members at run-time in
I was wondering if its possible to add custom header with classic asp. In
I have not worked so much with files: I am wondering about possible issues
I wondering if it possible to have a preprocessor OR or AND statement? I
I am wondering is it possible to have a list box that has custom
I was wondering if its possible to have Jira update a ticket's status to
I'm wondering if its possible to join together IEnumerable's. Basically I have a bunch
I am wondering if its possible to have Netbeans display PHP Documentation for functions/methods/classes
just wondering if its possible to have a hidden parent and a visible child

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.