8000 iCheck Reflect Loaded Checkbox · Issue #407 · drgullin/icheck · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content
iCheck Reflect Loaded Checkbox #407
Open
@mprythero

Description

@mprythero

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

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      0