我有多种案文,我想根据上页的表格提出的意见加以展示。
For example, if their answer meets certain criteria, in the controller I would make the TestEligibilty = True and if it doesn t TestEligibility = False. and I would add it to viewbag.
观点Bag. 脱硫=检测;
I have tried this: If variable = true, display a text and if variable = false, hide the text
<div class ="Test-view">
<p>-test successful</p>
</div>
这是我下面的法典中的内容。
<script>
var TestEligibility = @ViewBag.TestEligibility;
if (TestEligibility = false) {
$( #Test-view ).hide();
}
else {
$( #Test-view ).show();
}
</script>