Javascript – Div type=”hidden” + Not hided


In my code, I have a div tag with type="hidden". I just don't want to show the div. If needed, I will show it using JQuery Show().

But, using this, my div is not hidden from view.

Now I hide the div by using

<div style="visibility:hidden">XYZ</div>

If I need to show it again, how can I?

Best Solution

try using style instead of type

<div style="display: none;">content</div>