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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 24, 20262026-05-24T02:44:42+00:00 2026-05-24T02:44:42+00:00

This post is an extension of Customizing JQuery Cloned row attributes . What I

  • 0

This post is an extension of Customizing JQuery Cloned row attributes.

What I need to do is copy the row, but be selective as to what new Name and ID to assign to each element. For example, if the element is a Radio button, I do not want to change the name (for grouping purposes).

Also, in the example provided in the fiddle, the ‘select’ list never gets its name or id updated.

Here is the fiddle: http://jsfiddle.net/radi8/EwQUW/15/

Being new to JQuery, I really appreciate any guidance and help in getting this to work. I hate asking silly questions, but this is the BEST board I have found so far and have always received clear, direct answers.

  • 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-24T02:44:43+00:00Added an answer on May 24, 2026 at 2:44 am

    Try this

    // do Add button options
    $("#Add").click(function() {
        var i = ($('#secondaryEmails >tbody >tr').length)+1;
        $("#secondaryEmails >tbody tr:first").clone().find("input,select").each(function() {
            //if(this).(':radio').
            $(this).attr({
                'id': function(_, id) {
                    return id + i;
                },
                'name': function(_, name) {
                    if($(this).attr("type") == "radio")
                        return name;
                    return name + i;
                },
                'value': ''
            });
        }).end().appendTo("#secondaryEmails >tbody").show();
    });
    // do update button options
    $("#update").click(function() {
        // find and display selected row data
        alert('in Update');
        var rowCount = $('#secondaryEmails >tbody >tr').length;
    
    });
    // do row double click options
    // do row selected by either focusing on email or ship type elements
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Background this post explains how one can consume extension methods in Powershell http://community.bartdesmet.net/blogs/bart/archive/2007/09/06/extension-methods-in-windows-powershell.aspx Compare
This post asks this question but doesn't really give an answer, so I thought
This post relates to this: Add row to inlines dynamically in django admin Is
This post started as a question on ServerFault ( https://serverfault.com/questions/131156/user-receiving-partial-downloads ) but I determined
This post is incorrectly tagged 'send' since I cannot create new tags. I have
I'm doing a Chrome extension and I got helped in this post here .
This is an extension of a previous post I made. To summarize what is
I have an extension, where I need to generate thumbnails. For this, I wrote
I've been following a post regarding extension methods from this post : public static
According to this post , F# supports extension methods on object instances and static

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.