Toggle visibility of non-server controls from code-behind(madskristensen.dk)
submitted by
madskristensen(8565) 5 years, 3 months ago
Since ASP.NET 1.0 you had the ability to toggle the visibility of any HTML tag with the runat=”server” attribute. The only prerequisite is to add the runat=”server” and ID attributes, but that is not always possible or desirable. If you add elements dynamically to the DOM tree using JavaScript it is impossible and if you have a lot of elements to toggle individually it may not be desirable. Here's how to do it.
|category: ASP.NET
|Views: 9
tags:
Visibility JavaScript another
Everyones tags:
Your Tags: