struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From taj uddin <>
Subject How to define style for onselect attribute of <s:a> tag
Date Tue, 14 Jul 2009 07:40:37 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
                <s:a href="javascript:submitFormMenu('/fps/h/viewSupport.action');" 

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.


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