dimanche 4 mars 2018

Can't select checkbox using iCheck - HTML Checkbox

I bought a stock image script and have a problem with the login screen. There is a 'Remember me' option with a checkbox. Unfortunately it's not possible to click the checkbox, only if you click on the string it will tick the box. I found out that the coder used icheck to create the button but I'm not sure why you aren't able to tick the checkbox.

Here is the source:

<div class="row margin-bottom-15">
    <div class="col-xs-7">
        <div class="checkbox icheck margin-zero">
            <label class="margin-zero">
                <input @if( old('remember') ) checked="checked" @endif id="keep_login" class="no-show" name="remember" type="checkbox" value="1">
                <span class="keep-login-title"></span>
        </label>
    </div>
    </div>

Javascript Section

<script src=""></script>

    <script type="text/javascript">

    $(document).ready(function(){
      $('input').iCheck({
        checkboxClass: 'icheckbox_square-red',
        radioClass: 'iradio_square-red',
        increaseArea: '20%' // optional
      });
    });
</script>

Here is the site in a live example: http://gostock.miguelvasquez.net/login

Does anybody know how to fix this?

Best regards.




Aucun commentaire:

Enregistrer un commentaire