I have multiple checkbox in my form beside every field, checkbox data will not saved.
(我的表单中每个字段旁边都有多个复选框,复选框数据将不会保存。)
I have to figure out all checkboxes are selected before form submitting. (我必须弄清楚在提交表单之前所有复选框都已选中。)
If all checkbox selected I will get true otherwise false. (如果选中所有复选框,我将得到true,否则得到false。)
I need to do in dynamic way as I have huge amount of field in my form. (我需要以动态方式进行操作,因为我的表单中包含大量字段。)
Given some portion of my html code... (给定我的html代码的一部分...)
<div class="ui-g-12 ui-md-12">
<div class="ui-g-12 ui-md-11">
<span class="md-inputfield">
<input type="text" pInputText
formControlName="sequenceOfTotal">
<label>Sequence of Total(27)</label>
</span>
</div>
<div class="ui-g-12 ui-md-1">
<span class="md-inputfield">
<p-checkbox binary="true">
</p-checkbox>
</span>
</div>
</div>
ask by md. erfan translate from so 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…