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 6382771
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 25, 20262026-05-25T02:33:56+00:00 2026-05-25T02:33:56+00:00

On click of the Copy link in a row, I need to create another

  • 0

On click of the Copy link in a row, I need to create another row and copy all its contents to the new row. This is the code I have:

addNewInlineRow(sid, idToUse); // this creates a new row with empty values
//this copies the value from old row to new row
$("#"+rowId+ " td").each(function(index){
    $("#"+idToUse+ " td").get(index).text($(this).text());
});

But this code is not working. Any suggestions? I cannot clone the entire TR due to existing complex logic for creating TR id!!

  • 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-25T02:33:57+00:00Added an answer on May 25, 2026 at 2:33 am

    When you use .get() you’re retrieving the DOM element, it is not a jQuery object, therefore you can not use .text() to set the text value. Try:

    $("#"+idToUse+ " td").get(index).innerHTML = $(this).text();
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I want to be able to click the button and have it copy this:
I have a form which has the possibility to dynamically create new row with
When I create a new project and copy paste code from the old project,
I have been trying to create a link in each row of a datable
click the button to call this method: private void goRegister(final boolean isUsername) { new
Click on this link , you will be redirected to a shopping site. On
[SOLVED] I am following this tutorial link I have a buttons in my Main
In drupal 7.17 I copy this url #overlay=%3Fq%3Dadmin%252Fmodules then click Edit, Shortcuts then Add
After login when i click a link to another message in a post it
I have a table and a link below it. I need to be able

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.