Einstein47
Programmer
Hey all,
I have a web page where if a certain radio box is selected then other elements on a form are required. I would like to have a CSS class of
and then have a JavaScript method that would dynamically change the class to be
so that the required field incidator mark would then be displayed.
Is that possible? I have tried a few things but nothing seems to work. I know I must be missing something in the DOM.
My code is generated from JSP so it is really ugly. If you need I can try to give a sample mock up of the code, for a better illustration. But if the answer is a simple no, not possible I'll not waste my time.
Thanks,
Einstein47
("Tribulations are God's megaphone to awaken a deaf world." - C.S. Lewis)
I have a web page where if a certain radio box is selected then other elements on a form are required. I would like to have a CSS class of
Code:
.itemRequired { visibility: hidden; }
Code:
{ visibility: visible; }
Is that possible? I have tried a few things but nothing seems to work. I know I must be missing something in the DOM.
My code is generated from JSP so it is really ugly. If you need I can try to give a sample mock up of the code, for a better illustration. But if the answer is a simple no, not possible I'll not waste my time.
Thanks,
Einstein47
("Tribulations are God's megaphone to awaken a deaf world." - C.S. Lewis)