Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR CSHARP

add css class based on model value razor

<div class="details @(@Model.Details.Count > 0 ? "show" : "hide")">
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #add #css #class #based #model #razor
ADD COMMENT
Topic
Name
8+8 =