Returns the control with the specified ID.
Namespace: MindFusion.Common
File: Control.js
SyntaxJavaScript
Copy Code
|
|---|
static find (id) |
Type: String
String. The ID.
Control. The control with the specified ID if found, or null otherwise.
ExampleThe following code uses the find method to search for an oval Gauge that must be disposed because it is no longer rendered on the web page.
JavaScript
Copy Code
|
|---|
function stopClock() document.getElementById("clock").parentNode.style.visibility = "hidden"; var clock = g.OvalGauge.find("clock"); |
See Also