struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From taj uddin <tajuddi...@yahoo.com>
Subject How to define style for onselect attribute of <s:a> tag
Date Tue, 14 Jul 2009 07:41:07 GMT
Hi All,

        In my application, the JSP page displays a list of items with hyperlinks. When
i select one particular item, then that item/element should be rendered according to the style
being defined.
Below is the code shown:

              <s:a href="javascript:submitFormMenu('/fps/admin/viewHome.action');">Home</s:a></li>
               <s:a href="javascript:openTOCHelp('/fps/manual/fpsadmin.htm');">User
Manual</s:a>
                <s:a href="javascript:submitFormMenu('/fps/h/viewSupport.action');" 
>Support</s:a>

The style which i am including is:
color: #ce122c; font-weight:bold;

I'm confused as how to use onselect attribute of <s:a> tag to render the html element
with the given style when user clicks on a particular link or item.
If there is any other way, pls let me know ASAP.

Thanks,
Tajuddin





      
Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message