Home Cooker Classes Others Rice CookerGX
Classes  >  document  >  GetElementsByClassName(string)
document class : GetElementsByClassName(string) method

Description

Returns a list of elements with the specified class attribute.

Syntax

documentInstance.GetElementsByClassName(string className)

Arguments

ClassNameDescription
stringclassNameThe value of class attribute.

Return value

ClassDescription
list{element}A list of elements with the specified class attribute.

Sample code

document d = new document();

list{element} le =d.GetElementsByClassName("anyClassName");

Notes

None

Links for reference

None

Copyright © Rice All rights reserved.