Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

158
Views
Value Given when tick box is checked :Undefined Array Key

When check box is selected, it copies value from customer to invoice party. So I am assuming that when check box selected. value is automatic. but it is saying undefined array key.

enter image description here

function EnableDisableTextBox(tickSame) {
    var shipper = document.getElementById("iP");
    var customer = document.getElementById("consignee").value;
        document.getElementById("iP").value=customer;   
    shipper.disabled = tickSame.checked ? true : false;
    if (shipper.enabled) {
    
        shipper.blur();

    }
    
}
about 4 years ago · Juan Pablo Isaza
1 answers
Answer question

0

I hope you are submitting the form to the server side. Disabled inputs will not submit data when submitting the form. Instead you can use readonly attribute to make to non editable (Even you can make it look like disabled with css)

function EnableDisableTextBox(tickSame) {
    var shipper = document.getElementById("iP");
    var customer = document.getElementById("consignee").value;
        document.getElementById("iP").value=customer;   
    shipper.readonly= tickSame.checked ? true : false;
    if (shipper.readonly) {
    
        shipper.blur();

    }
    
}

about 4 years ago · Juan Pablo Isaza Report
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!