Switch 'disabled' class instead of setting 'display' property directly.