I am trying to set the value of a textbox to "transfer" if a checkbox is clicked.
I have tried several ways to accomplish this with no results. Below are 2 ways that I cannot get to work.
Form Name: ipc_pick
Textbox Name: textbox1
Checkbox Name: check
DOES NOT WORK.
DOES NOT WORK
I just set the onclick event on the checkbox.
I have tried several ways to accomplish this with no results. Below are 2 ways that I cannot get to work.
Form Name: ipc_pick
Textbox Name: textbox1
Checkbox Name: check
DOES NOT WORK.
Code:
{
if ( document.all.check.checked )
ipc_pick.textbox1.value = "transfer"
else {}
}
DOES NOT WORK
I just set the onclick event on the checkbox.
Code:
ipc_pick.textbox1.value = "transfer"