Hide a button form an AJAX Event

Hi,

if have a Ajax OnChange event checking the input of the user, when this is not according the spec’s a button in the toolbar should be hidden/disabled.

Is this possible?

Regards
Erwin