Add variable to document. object

5 pts.
Tags:
Variables
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

Answer Wiki

Thanks. We'll let you know when a new response is added.
Send me notifications when members answer or reply to this question.

Discuss This Question:  

 
There was an error processing your information. Please try again later.
Thanks. We'll let you know when a new response is added.
Send me notifications when members answer or reply to this question.

Forgot Password

No problem! Submit your e-mail address below. We'll send you an e-mail containing your password.

Your password has been sent to:

To follow this tag...

There was an error processing your information. Please try again later.

Thanks! We'll email you when relevant content is added and updated.

Following

Share this item with your network: