You should be executing $find() instead $get() when getting hand of the input client component. The $get() method returns the dom element of the control, while $find() gets the client component to which the updateCssClass()
belongs. It is no wonder that the execution never reaches the second alert as before that you are trying to execute a method which does not exist in the input.
I hope this information helps.
the Telerik team