I have the following code. It is some to hide a div based on a value in my model...but it seems to hide it all the time...something must be wrong with the syntax.
Here is the code:
<div class="@(Model.SiteName.Contains("subscribersite_")?"hidden":"step-pane active sample-pane alert")" data-step"1">
This should only hide the dive tag when the model contains that value. It does hide it...but it also hides it when it doesnt contain that value.
I am using built in bootstrap to change the class...but a display none approach is fine as well.