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

Description

Gets a offspring element that have the specified id attribute.

Syntax

elementInstance.GetElementById(string)

Arguments

ClassNameDescription
stringidValueThe value of id attribute.

Return value

ClassDescription
elementA offspring element that have the specified id attribute.

Sample code

//anyElement is any instance of element type.

element ele = anyElement.GetElementById("any id");

Notes

If there is not a offspring element that have the specified id attribute, returns the element that has not been initialized.

Links for reference

None

Copyright © Rice All rights reserved.