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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 31, 20262026-05-31T09:16:01+00:00 2026-05-31T09:16:01+00:00

Can some one help me with this please because im banging my head against

  • 0

Can some one help me with this please because im banging my head against a wall now 🙁

I have a table with roughly 13 columns connected to this is a Jquery context menu, where the user can right click on the table and select copy down if they do this then i need to copy the value from the selected row down to the other rows, so far i have a JQuery function which is working to an extent, but for some reason when i run this it adds a new row to the table is not what i want, all i want to do is copy the values from the row and populate the other rows without adding a new row is that possible?

heres my JQuery

$(function() {
    $('#grdvHandSets>tbody>tr').contextMenu([
        {
        'Copy Down': function(menuItem, menu) {
            var tr = $(this),
                tr2 = $(this).clone(true, true).insertAfter(this)
                tr.find(':input:not(.phonenumber)').each(function() {
                    //console.log(this.id)
                    tr2.find("[id='" + this.id + "']").val($(this).val())
                })
                tr2.find('.phonenumber').val('')
                $('#grdvHandSets .gvItem').each(function(i) {
                    $(this).text(i + 1)
                })
        }}
    ], {
        theme: 'vista'
    })
})​

Can some one please help me…. 🙁

  • 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-31T09:16:02+00:00Added an answer on May 31, 2026 at 9:16 am

    Did you write this code yourself? Its making a new row because that’s what you’re telling it to do:

    tr2 = $(this).clone(true, true).insertAfter(this)
    

    To get all the rows after your current one, you can use the nextAll function.

    tr2 = tr.nextAll();
    

    You will probably also want to rename tr2 to something more logical, like nextRows

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

Sidebar

Related Questions

Can any one please help me solve this. I am resizing some flash object/embed
Can some one help me.. I have a script who generates code like this
Hi I wonder if someone can help me, I've been banging my head against
Im a beginner to css, please can someone help me get this element to
this kind of emergency, so please, can someone help me... I'm using movingboxes plugin
can someone please help me. why does this return an error: Dim stuff As
Can someone please help me out with a JavaScript/jQuery solution for this arithmetic problem:
Could someone please help explain why I can't get this to work? I properly
can someone help me with this? I have an AlertDialog box and its working
Could you please help me with this one: In one of my scripts I

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.