Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

detecting CSS

Status
Not open for further replies.

Streetdaddy

Programmer
Jun 10, 1999
161
AU
i have a table with cells in it, which us a CSS Class (ie <td class=&quot;myclass&quot;>test</td>

I need a script to Detect (OnClick) what the Class name that the TD cell is using, so that i can swap the Class for a &quot;Highlight&quot; class) Miles
busymiles@lan-house.net
 
if you just want to change to a different class, you don't need to check what style is currently being used, you just need to apply the new one.

i think it's something along the lines of...

onClick=&quot;[yourObject].className='[yourNewClass]';&quot;

ss
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top