Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

iCheck Reflect Loaded Checkbox #407

Open
mprythero opened this issue Sep 14, 2018 · 0 comments
Open

iCheck Reflect Loaded Checkbox #407

mprythero opened this issue Sep 14, 2018 · 0 comments

Comments

@mprythero
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant