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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 12, 20262026-06-12T23:41:12+00:00 2026-06-12T23:41:12+00:00

I have cloned the rows in my table editable . The rows have 2

  • 0

I have cloned the rows in my table editable.

The rows have 2 column editable, 1 with editable textarea and the other one with an input numer.

There is a function which sum the numbers in the two input numbers and give the total. You can try here, there is onblur : "submit"

I have cloned both Rows, they are editable but the function to calculate the Total does not work in the rows cloned.

How can i make my function working in the cloned rows?

  • 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-06-12T23:41:14+00:00Added an answer on June 12, 2026 at 11:41 pm

    you are cloning rows with id="sum", and you should not have duplicated ids in your page.

    when i have to clone elements i generate dynamic ids so they don’t get duplicated.

    like this:

    var lastid = $('[id^="clonedInput"]').length + 1;
    $(".clonedInput").last().clone().attr('id', 'clonedInput' + lastid).appendTo("body")
    

    you can test a full working example here: http://jsfiddle.net/RASG/MjMh5/

    also, your jsfiddle is a total mess. please keep only the relevant code.

    EDIT

    ok, so you have other problems as well.
    for instance, your function tally does not sum the cloned rows.
    this function (not mention your whole code) could be a lot simpler.

    function tally() {
        var total = 0;
        $('p.editable_number').each(function() {
            total += parseInt($(this).text()) || 0;
            $('#total').html(total);
        })
    }
    

    test it here: http://jsfiddle.net/RASG/MA78A/

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

Sidebar

Related Questions

I have built an editable table . There are two rows, one editable with
I have a logging table which has three columns. One column is a unique
I have a table where i can add rows using clone function like this:
i have 2 tables, i want to add rows from one table to another,
I have been researching the JQuery way to add table rows dynamically. One excellent
I have a table and I want from user add rows which who want.
I have a table with four columns, of which one is <type> . I
I have a remote git repository and I have cloned one branch git clone
I have just setup a new local site (localhost/pfb.net/) which has been cloned from
I have an HTML table with several rows. If you hover on the row

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.