// hide the link btn.style.display = 'none';
Style visibility true. I experimented a bit with those two possibilities. Web function stategovoptions(){ if(document.getelementbyid('stategov').value =='yes') document.getelementbyid('stateoptions').setattribute('style','visibility:visible'); Take a look at our last example on this page if you want to know how this can be achieved.
60 depends on how you hid it. Share improve this answer follow My assumption is, that when hiding it with javascript, the element is truly hidden and taken out of the flow;
Is commonly used with javascript to hide and show elements without deleting and recreating them. It is similar to the display property. Web description the visibility property sets or returns whether an element should be visible.
If you used css `display' $ ('#test1').css ('display', 'block'); If you used the css visibility value then $ ('#test1').css ('visibility', 'visible'); Web definition and usage the visibility property specifies whether or not an element is visible.
And when hiding with css style the element is just not shown but still there. Hidden elements take up space on the page. Show demo browser support the numbers in the table specify the first browser version that fully supports the property.
The visibility css property shows or hides an element without changing the layout of a document. The visibility property allows the author to show or hide an element. Web 8 answers sorted by: