Element.GetElementsByClassName

Element.GetElementsByClassName method

Returns HTMLCollection object containing all the elements within element that have all the classes specified in argument.

public HTMLCollection GetElementsByClassName(string classNames)
ParameterTypeDescription
classNamesStringThe string that contains an unordered set of unique space-separated tokens representing classes (class names)

Return Value

A live HTMLCollection of found elements.

Remarks

Refer to official spec.

See Also