Home / Software / Tips and Tricks / Using JavaScript change the class associated with an element.

Using JavaScript change the class associated with an element.

Updated:  02/08/2010 09:02 AM
Author:  Shiju Mathews

Status:    Resolved.


Add a JavaScript function to the element as follows.



NB:  This function will not work in Opera 5 or 6, or Netscape 4.x.