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

Description

Returns a list of elements with the specified attributes and values.

Syntax

documentInstance.GetElementsByAttribute(string attributeName,string attributeValue)

Arguments

ClassNameDescription
stringattributeNameAttribute name.
stringattributeValueAttribute value.

Return value

ClassDescription
list{element}List of elements with the specified attributes and values

Sample code

document d = new document();

list{element} le =d.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.