This seems like it should be simple, but I'm struggling with it. I have a web form in which the user chooses items from certain dropdown menus that cascade to other dropdown menus, which I want to hide or disable. The selection they make puts one value in one field with the main dropdown and a connected value in another field from the cascaded dropdown. I want to hide or disable the virtual cascaded dropdowns because the user doesn't need to see that information. Here's the code I'm using but isn't working:
<SCRIPT LANGUAGE="JavaScript">
var fieldName = "cbParamVirtual2";
function hideThem () {
document.getElementsByName(fieldName).disabled = true;
}
onload = hideThem;
</SCRIPT>
You can post now and register later.
If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.
Question
mdupras
Hi all --
This seems like it should be simple, but I'm struggling with it. I have a web form in which the user chooses items from certain dropdown menus that cascade to other dropdown menus, which I want to hide or disable. The selection they make puts one value in one field with the main dropdown and a connected value in another field from the cascaded dropdown. I want to hide or disable the virtual cascaded dropdowns because the user doesn't need to see that information. Here's the code I'm using but isn't working:
Any one have an idea?
Thanks!
-- Mike
Link to comment
Share on other sites
2 answers to this question
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.