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

Description

Returns a list of elements with the specified attributes.

Syntax

documentInstance.GetElementsByAttribute(string attributeName)

Arguments

ClassNameDescription
stringattributeNameAttribute name.

Return value

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

Sample code

document d = new document();

list{element} le =d.GetElementsByAttribute("id");

Notes

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

Links for reference

None

Copyright © Rice All rights reserved.