Raster.hasClass( element, className )

Test if an element has a given class name

Parameters

Name Type   Description
element object A DOM element.
className string Name of the style class to be tested in this element.

Returns

Type Description
boolean Returns true if the element contains the given className in its class attribute.
Home Examples Download License
 
Copyright © 2010-2017 Edwin R. López