I want to create a function so that when a user clicks on a
radio button, a select box drop down menu option is option is changed. here is what I have, and it doesn't work (it does change the html on the page, but that isn't what the problem is - i want it to also change the option value in the select dropdown box).
the error is "refiPurchase is null or not an object". what am I doing wrong?
function hiderefiPricePurchBoxes(form)
{
document.getElementById('refiPricePurch').innerHTML = "";
document.getElementById('refiPurpose_OtherBox').innerHTML = "";
form.refiPurpose.value=="";
}
radio button, a select box drop down menu option is option is changed. here is what I have, and it doesn't work (it does change the html on the page, but that isn't what the problem is - i want it to also change the option value in the select dropdown box).
the error is "refiPurchase is null or not an object". what am I doing wrong?
function hiderefiPricePurchBoxes(form)
{
document.getElementById('refiPricePurch').innerHTML = "";
document.getElementById('refiPurpose_OtherBox').innerHTML = "";
form.refiPurpose.value=="";
}