I am trying to fill an input field from previou input field value if user click the check box next to it. The problem I am having was document.form_two will not take other variable. For example,
document.form_two.ckb_iCount.value will not take iCount value. It suppose to be...
document.form_two.ckb_2.value, but it prints out as document.form_two.ckb_iCount.value
Is there a way to make that work. Your help is much apreciated.
<full java script below>
var pCount = iCount - 1;
var iCkb = document.form_two.ckb_iCount.checked;
var iVal = document.form_two.appl_iCount.value;
var pVal = document.form_two.appl_pCount.value;
if ( iCkb == true )
document.form_two.appl_2.value = pVal;
document.form_two.appl_2.value = "";
Free Guide: Managing storage for virtual environments
Complete a brief survey to get a complimentary 70-page whitepaper featuring the best methods and solutions for your virtual environment, as well as hypervisor-specific management advice from TechTarget experts. Don’t miss out on this exclusive content!