wood burning stoves 2.0*
The moose likes HTML, CSS and JavaScript and the fly likes Disabling the submenu links in jsp when the page loads Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Engineering » HTML, CSS and JavaScript
Bookmark "Disabling the submenu links in jsp when the page loads" Watch "Disabling the submenu links in jsp when the page loads" New topic
Author

Disabling the submenu links in jsp when the page loads

anita prat
Greenhorn

Joined: Aug 11, 2011
Posts: 8
Hi,
In my jsp, I have a top menu with different tabs, tab1, tab2. Under each tab there are two sub menu links. I need to gray out /show these sub menu links based on the values I have in an arraylist . This arraylist is available in a bean which is available in session. Any idea, how to achieve this? I tried using a javascript which I call in body onload. And for these submenu links which have the <a href ....> I defined an is for each of them. <a href="some url" id = sub_menu1" > etc. Can anyone help me with this?
Paul Clapham
Bartender

Joined: Oct 14, 2005
Posts: 18541
    
    8

Really, if you have a question about Javascript, it's much better to ask it in our forum about HTML and Javascript. Such questions get answered much better and much faster there. I will move this post.
 
 
subject: Disabling the submenu links in jsp when the page loads
 
Similar Threads
Iterate HashMap in jsp - Struts2
Improving application Performace
Main menu / sub menu
Using swing in Java
Improving application Performace