Version

toggle Method

Changes the Expanded state of the node to the opposite value from what it is currently. If the node is expanded, then it will be collapsed. If the node is collapsed, it will be expanded.
Syntax
ASP.NET Ajax Javascript (Specification) 
function toggle( 
   fireEvents : Boolean
) : (Any);
ASP.NET Ajax Javascript (Usage) 
var resultVar = instanceOfNode.toggle(Boolean);

Parameters

fireEvents
Determines if client events should be fired.
See Also