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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 16, 20262026-05-16T04:18:41+00:00 2026-05-16T04:18:41+00:00

Via jQuery I’m dynamically cloning an input checkbox object, and then I’m changing its

  • 0

Via jQuery I’m dynamically cloning an input checkbox object, and then I’m changing its name using this instruction:

row.find('[name="ACCCHB_CDARM"]').attr("name",id);

ACCCHB_CDARM is the attribute’s name of object I’m cloning.

There’s no problem using FireFox, but in IE it doesn’t change the original value!

Is this code correct?

Thank you very much.
Mirco

  • 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-16T04:18:41+00:00Added an answer on May 16, 2026 at 4:18 am

    To reproduce your error, I’ve written the following code, which works just fine with Internet Explorer 8.0:

    <script type="text/javascript">
        $(document).ready(function(){
            var row = $('#row');
            var inp = row.find('[name="ACCCHB_CDARM"]');
            inp.attr("name","NewName");
            alert(inp.attr("name"));
        });
    </script>
    <div id="row">
        <input type="checkbox" name="ACCCHB_CDARM" />
    </div>
    

    NewValue is alerted after changing the name attribute to NewValue.

    It looks like that on older versions of Internet Explorer, the name attribute couldn’t be changed dynamically (the post dates back from the year 2005). The current MSDN documentation for name states the following:

    Microsoft JScript allows the name to
    be changed at run time

    Further down in the documentation, where some examples are shown on how to dynamically change the name attribute you’ll find the following line:

    This feature requires Windows Internet Explorer 7 or later

    To bring my answer to the point, it looks like you’re using an older version of Internet Explorer.

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

Sidebar

Related Questions

I am trying to load HTML via JQuery, using the .load function. This is
How could this be achieved via jQuery? When the user clicks on any input
I built this website using ajax (via jquery) instead of full page refresh. Right
I have a button that has its location generated dynamically via jquery: <a id=final_location
I have a page that has fields dynamically loaded via JQuery. It allows a
I want to get fetch some data via jQuery.ajax() ,save this data via the
How do I submit a javascript object via jQuery to django? $.ajax({ type: 'POST',
I am submitting a form via jquery form submit. just like this example However,
I am trying to send html via jQuery's $.ajax() method, and then dump the
I have a form which is validated via jQuery, then ajaxed to a php

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.