Documentation for: ASP.NET Ajax Version 1.0

This documentation is for a previous version. For the current released version, see the ASP.NET Ajax documentation on MSDN.








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.


var b = Behavior.getBehaviorByType(element, type);




The DOM element to search.


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.