Laravel-adminlte: iCheck checkbox and radio not working

Created on 11 Aug 2017  路  2Comments  路  Source: jeroennoten/Laravel-AdminLTE

If I add a checkbox to the html:

<input type="checkbox" />

And then in my script (at the end of the page):

$('.input[type="checkbox"]').iCheck()

It hides the input element (which is correct), but does not show the iCheck.

Most helpful comment

You should add the JavaScript and CSS yourself, the iCheck plugin is only loaded at the login page.

Add it like this:

@section('css')
    <link rel="stylesheet" href="{{ asset('vendor/adminlte/plugins/iCheck/square/blue.css') }}">
@stop

@section('js')
    <script src="{{ asset('vendor/adminlte/plugins/iCheck/icheck.min.js') }}"></script>
    <script>
        $('.input[type="checkbox"]').iCheck()
    </script>
@stop

All 2 comments

You should add the JavaScript and CSS yourself, the iCheck plugin is only loaded at the login page.

Add it like this:

@section('css')
    <link rel="stylesheet" href="{{ asset('vendor/adminlte/plugins/iCheck/square/blue.css') }}">
@stop

@section('js')
    <script src="{{ asset('vendor/adminlte/plugins/iCheck/icheck.min.js') }}"></script>
    <script>
        $('.input[type="checkbox"]').iCheck()
    </script>
@stop

checkbox style adminlte not saving for php

Was this page helpful?
0 / 5 - 0 ratings

Related issues

Shidersz picture Shidersz  路  4Comments

iHeartBard picture iHeartBard  路  4Comments

Shidersz picture Shidersz  路  5Comments

rafayet-monon picture rafayet-monon  路  3Comments

Basili0 picture Basili0  路  5Comments