0
我给复选框的网格,每当我尝试点击任何它总是通过在ng-click
名单,NG-残疾人没有工作
HTML
<tr ng-repeat="partecipant in current_event.partecipants">
<td class="user_cell"><font class="user_name">{{(partecipant}}</font><span class="arrow"></td>
<td class="checkbox_cell" ng-repeat="proposed_time in current_event.proposed">
<input type="checkbox" class="toggle" ng-checked="isChecked(partecipant, proposed_time)" ng-true-value="true" ng-false-value="false" ng-click="addResponse(partecipant, proposed_time)" ng-disabled="userProfile.webid != partecipant" name="thing" id="thing"><label for="thing">
</td>
</tr>
ng-checked
:做工精细,复选框被选中相应
ng-click
:不工作,它通过经常的第一个值proposed_time
ng-disabled
:不工作时,都启用时,当userProfile.webid == partecipant
任何帮助表示赞赏,他们应该只启用一行。提前致谢。
编辑
解决了!
错误发生在name="thing" id="thing"
,这使得复选框具有相同的名称和ID,因此我将它们动态命名。
谢谢你的plunker,我会检查出来,这与错误无关,这是为了演示目的,我在后期编辑:) – mzereba