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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 17, 20262026-06-17T22:12:17+00:00 2026-06-17T22:12:17+00:00

I use jQuery successfully to duplicate a first form input field (name=InvoiceTotal) to a

  • 0

I use jQuery successfully to duplicate a first form input field (name=”InvoiceTotal”) to a second form input filed (name=”AmountPaid”) that is readonly. However, IE (I’m using IE8) does not duplicate leaving the second filed empty and as the second field needs to be readonly the user can not enter data themselves.

I use almost identical code to duplicate other fields which works perfectly in IE – the only difference in this alternate code is I uses a check box make it conditional to give the user the option if they wish to duplicate their input.

Any suggestions as to what I am not seeing would be very much appreciated.

   $(document).ready(function() {      
    $('#InvoiceTotal').change(function() {        
     $('#AmountPaid').val($('#InvoiceTotal').val());
    });
   });


<input name="InvoiceTotal" type="text" id="InvoiceTotal"  />

<input name="AmountPaid" type="text" id="AmountPaid" readonly />
  • 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-17T22:12:19+00:00Added an answer on June 17, 2026 at 10:12 pm

    Kept trying and I’ve ended up with a different approach. I started by using the jQuery as a function calling it using “onchange” but again found it didn’t work with IE. After reading many articles and postings about how IE doesn’t handle “onchange” very well I switched to using “onblur”. The solution I found I feel isn’t very clean and could be much better but everything is working even in IE so until I can get back and try code it better it’ll have to do.

    Here is the working code in case it can help someone else.

    <html>
    <head>
    
    <script type = "text/javascript">
        function getAmount() {
        $('input#AmountPaid').val($('input#InvoiceTotal').val());
        }
    </script> 
    
    </head>
    <body>
    
        <input name="InvoiceTotal" type="text" id="InvoiceTotal" onblur="getAmount();" />
    
        <input name="SomeOtherInput" type="text" />
    
        <input name="AmountPaid" type="text" id="AmountPaid" readonly />
    
    </body>
    </html>
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm attempting to use 'jQuery Validate' on a form that requires an email address
The following HTML form successfully utilizes jQuery's form validation, displaying This field is required
I was trying to use jQuery's page scroll inside some pages and could successfully
I use jQuery Validation plugin to ensure what user entered positive cost_of_car in first
I have a page in which i can successfully use the jquery focus function
I use a jquery datepicker then i read it in my servlet like that:
I'm using the jQuery Validator plugin successfully on a form. This form is a
I am trying to display a jquery modal overlay if an HTML form successfully
I am using jQuery Templates successfully but I have a blur function that is
I am successfully loading content through the use of jQuery(.menu li a).click( function(event){ jQuery(#loadingArea).load(this.href)

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.