Sys.UI.Behavior getBehaviorByType Method
Gets an array of Sys.UI.Behavior objects that are of the specified type from the specified HTML Document Object Model (DOM) element. This method is is static and can be invoked without creating an instance of the class.
Syntax
var b = Behavior.getBehaviorByType(element, type);
|
Term
|
Definition
|
|
element
|
The DOM element to search.
|
|
type
|
The type of the Sys.UI.Behavior objects to find.
|
Return Value
An array of all Behavior objects of the specified type that are associated with the specified DOM element, if found; otherwise, an empty array.