I want to make a vaadin-combo-box hidden, using javascript

I create a vaadin-combo-box with html/javascript. The component is in a div.

When I hide the div, the component is not hidden, even though it is inside the div.

How can I hide it please?

Thanks in advance.

Can you be more specific how you hide it?

I’m just hiding the div with document.getElementById(divid).style.display = ‘none’;

I was hoping that because the vaadin-combo-box was inside the div, that would be hidden too … but alas …

I’m sorry if I don’t understand what’s happening very well. I’m no expert in javascript/css - still learning a lot.

No need to be sorry :slight_smile:

Setting the div’s display to ‘none’ should work. What are you seeing instead? And you don’t get any errors in the browser console, and have verified that the inline style is visible on the div?