Add variable to document. object
5 pts.
0
Q:
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
ASKED: Apr 2 2009  11:40 PM GMT
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
0
5 pts.
0
A:
 RATE THIS ANSWER
0
Click to Vote:
  •   0
  •  0
  • AddThis Social Bookmark Button
Last Answered: Apr 2 2009  11:40 PM GMT by Saung   5 pts.
0
0
Discuss This Answer:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _



0