Quote:
|
Originally Posted by adras
function populateTextBoxes() {
document.form1.mytextbox.value = document.form1.combobox.value;
}
and call this inside the checkbox input tag - with an onchange event.
|
You might wanna add checker so that the function is only triggered when the checkbox is actually checked.
e.g.
Code:
function populateTextBoxes() {
if (document.forms.form1.checkbox.checked == true) {
document.form1.mytextbox.value = document.form1.combobox.value;
}
}
It's also an idea to add in some
else code that clears the second set of input fields if the checkbox is then unchecked.