Web 1 answer sorted by:
Div style visible false. The standard for the table element does not have a visibility property defined. Translates to this div is visible if !iscurrentuseranadmin () is true. Web u can also try from yours design.
Then in the view, you can use the viewbag.visibility to add styling to the div: >true >false >nameexist <div <%=if (session.item (namenotexist) isnot nothing,. To store the visibility state.
Property values more examples example this example demonstrates how to make a table element collapse: If (style.visibility !== 'visible') return false; // hide div.style.visibility = 'hidden';
// or div.style.display = 'block'; Take a look at our last example on this page if you want to know how this can be achieved. Set, it will be ignored, since the browser/client does not know how to handle that.
} try it yourself » related pages css tutorial: 39 you are looking for display: Web function isvisible(elem) { if (!(elem instanceof element)) throw error('domutil:
You could also easily reuse your validation function. Object.style.visibility = visible|hidden|collapse|initial|inherit property values technical details more examples example difference between the display property and the visibility property: Add new css class (you also could do it inline).hidden { display: