onChange( )


Adds an event handler that runs when the multi-state box moves to a new state.

onChange is fired when the multi-state box moves to a new state. This occurs when the changeState() function is called.

Method Declaration
Copy
Method Parameters
eventHandlerfunctionRequired

eventHandler(): void The name of the function or the function expression to run when the multi-state box moves to a new state.

Returns
Return Type:MultiStateBox
Was this helpful?
Yes
No