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 = "";
April 2, 2009 11:40 PM
April 3, 2009 1:42 PM