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

Description

Returns a element with the specified id attribute.

Syntax

documentInstance.GetElementById(string idValue)

Arguments

ClassNameDescription
stringidValueThe value of id attribute.

Return value

ClassDescription
elementThe element with the specified id attribute.

Sample code

document d = new document();

element a =d.GetElementById("anyId");

Notes

It's a wrapper of the MSHTML.IHTMLDocument3.getElementById(String).

Links for reference

Copyright © Rice All rights reserved.