Jump to content

class change


Recommended Posts

Hi there,I just wonder is is possible to change the class of an element using javascript.Specaily a table element.Here's my code:<table class="border_table" onMouseOver="this.style.background='#f6f6f6'" onMouseOut="this.style.background='#FFFFFF'">...</table>I just wanna change all the class. Something like: onMouseOver="this.class='class1'"oronMouseOver="this.class.name='class1'"Any sugestions ?

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

  • Create New...