Hi Vladislav,
Actually, I think this may be solved in Shiny's latest devel version. Try installing that and running your original code. Let me know if it doesn't work.
Also `hide()` is a JQuery method, so if you're just using vanilla JS, you can do: `document.getElementById('id').style.display = 'none';`
If you're using JQuery, then you can do: `$('#id').hide();`
Hope you get that working!
Barbara