Open
Description
On a blade in my Laravel project I have the following:
<td>
@if($sD->transfer == 1)
<input type="checkbox" class="icheckboxTransfer" name="transfer" data-id="{{$sD->id}}" value="1" checked="checked">
@else
<input type="checkbox" class="icheckboxTransfer" name="transfer" data-id="{{$sD->id}}" value="1">
@endif
</td>
With the first half of the conditional statement, the checkbox is checked, and from the rendered html code, it is correctly set with the checked value on page load.
But, the iCheck checkbox remains empty and unchecked. I can still use it, so I know it is working correctly, but I guess I'm unsure how to get it to load as checked.
Thanks
Metadata
Metadata
Assignees
Labels
No labels