Want to know more about us and our multimedia, animation & web design courses, feel free to Contact Us. We would love to hear from you.
The className property sets or returns the class name of an element (the value of an element's class attribute).
Return the className property:
Set the className property:
HTMLElementObject.className = class
Set the class for a element with id="demoDIV"
Toggle between two class names.
|Monday To Friday||8:00 Am To 8:00Pm|
|Saturday & Sunday||8:00 Am To 5:00Pm|