Suggest to use `element.hidden = true;` as this is more consistent to other codes.