I need disable a div depending of a variable razor. I tried a css class but not working because it is very simple disable with developer tools. there is a safe method to perform this task.? I use ASP.NET MVC 4.0
.disableddiv {
pointer-events: none;
opacity: 0.4;
}
regards
You could do something like
Where
variable
is the variable that dictates if the div appears (likeshowDiv == true
, for example) and div is the div you want to show.