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!

getting problem in hiding drop down list in jsp pages

843840Jul 23 2008 — edited Jul 23 2008
Hi All,

I have a jsp in which i created a tabbed panel & put 3 forms .
1 of the form contains 3 drop dwom list & few text boxes.

All 3 forms are inside <div> tags .
Clicking on any one of the tab corresponding form is getting displayed with all its form fields hiding other 2 form fields.

but problem is coming with 1 form having drop down list.

all its field get hidden except these drop down list.

i am using following script to hide other forms


 function showit(tab){ 
     
    if(tab == "tab1stuff"){ 
		
        document.getElementById('tab1stuff').style.zIndex="2"; 
        document.getElementById('tab2stuff').style.zIndex="1"; 
        document.getElementById('tab3stuff').style.zIndex="1"; 
		document.getElementById('tab4stuff').style.zIndex="1"; 
                 
    } 
    else if(tab == "tab2stuff"){ 
		
        document.getElementById('tab2stuff').style.zIndex="2"; 
        document.getElementById('tab1stuff').style.zIndex="1"; 
        document.getElementById('tab3stuff').style.zIndex="1";
		document.getElementById('tab4stuff').style.zIndex="1"; 

    } 
    else if(tab == "tab3stuff"){ 
        document.getElementById('tab3stuff').style.zIndex="2"; 
        document.getElementById('tab1stuff').style.zIndex="1"; 
        document.getElementById('tab2stuff').style.zIndex="1";
		document.getElementById('tab4stuff').style.zIndex="1"; 
    } 
}
Plz help me in this regard.
I used style.visible="false" but that is not working here.

Thanks in advance.
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Aug 20 2008
Added on Jul 23 2008
3 comments
360 views