【发布时间】:2012-02-10 09:32:49
【问题描述】:
在使用复选框的条件逻辑时存在一些问题 我尝试检查=真或假,但它不工作,在那里我选择模板中的条件逻辑,我想要检查=“检查”匹配条件
<table border="1">
<thead>
<tr>
<th>Department Name</th>
<th>Test Name</th>
<th>Sub Test Name</th>
</tr>
</thead>
<tbody>
{#foreach $T.d as post}
<tr>
<td>{$T.post.Dep_Name}</td>
<td>{$T.post.Test_Name}</td>
<td>{$T.post.Sub_Test_Name}</td>
<td>
{{if $T.post.Status==Checked}}
<input id="chkResult" type="checkbox" checked="checked" />
{{/if}}
<input id="chkResult" type="checkbox" />
</td>
<td><input id="Button2" type="button" value="button" /></td>
</tr>
{#/for}
</tbody>
</table>
【问题讨论】:
标签: jquery-templates