Skip to Main Content

Java EE (Java Enterprise Edition) General Discussion

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Radio button Hide/Show on JSP

843836Mar 11 2004 — edited Mar 11 2004
Hi
I am trying to show the radio buttons on the webpage if a particular type of file is selected. If the file doesnt have the right extension the radio buttons should be hidden.

SO i tried a few things for it but it didnt seem to work.
FIRST in the table row for the radio buttons i added the "style = display:none" so that the radio buttons are not displayed when the form is loaded

Then in the Javascript if the right file extension is shown I try to display the table row (for radio buttons)
Somehow it doesnt show up.

Can anyone helpon this matter
[Javascript]
if (ext == "doc")
     frm.getElementById('ftype').style.visibility = 'visible'

 //where "ftype" is the id for the table row

[/Javascript]
Also i tried using "frm.getElementById('ftype').style.display = ''

This doesnt help either
Thanx
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Apr 8 2004
Added on Mar 11 2004
10 comments
841 views