5 pts.
 Add variable to document. object
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> function CopyToTarget(iCount) { 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; } else { document.form_two.appl_2.value = ""; } return true; } Thanks. Saung

Software/Hardware used:
ASKED: April 2, 2009  11:40 PM
UPDATED: April 3, 2009  1:42 PM

Answer Wiki:
Last Wiki Answer Submitted:  Be the first to answer this question.
All Answer Wiki Contributors:  Be the first to answer this question.
To see all answers submitted to the Answer Wiki: View Answer History.


Discuss This Question:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _