Home Cooker Classes Others Rice CookerGX
Classes  >  element  >  GetElementsByAttribute(string)
element class : GetElementsByAttribute(string) method

Description

Gets a list of the offspring elements that have the specified attribute.

Syntax

elementInstance.GetElementsByAttribute(string)

Arguments

ClassNameDescription
stringattributeNameAttribute name.

Return value

ClassDescription
list{element}A list of the offspring elements that have the specified attribute.

Sample code

//anyElement is any instance of element type.

list{element} le = anyElement.GetElementsByAttribute("class");

Notes

Please note that the value of the attribute is not taken into account.

Links for reference

None

Copyright © Rice All rights reserved.