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

Description

Gets a list of the offspring elements that have the specified attributes and values.

Syntax

elementInstance.GetElementsByAttribute(string attributeName,string attributeValue)

Arguments

ClassNameDescription
stringattributeNameAttribute name.
stringattributeValueAttribute value.

Return value

ClassDescription
list{element}A list of the offspring elements that have the specified attributes and values.

Sample code

//anyElement is any instance of element type.

list{element} le = anyElement.GetElementsByAttribute("type", "text");

Notes

Please note that the value of the attribute is specified by the string.

Links for reference

None

Copyright © Rice All rights reserved.