mercredi 27 avril 2016

Yii2 -Flatui checkbox not work

I need to use FlatUI checkbox style in Yii2 :

       <div class="col-md-3">
                 <?=Html::checkbox("search-name",false,['id'=>'search-name','data-toggle'=>'checkbox']) ?>
                 <?=Html::label("ファイル名","search-name",['class'=>'checkbox']) ?>
                </div>
                <div class="col-md-3">
                    <?=Html::checkbox("search-detail",false,['id'=>'search-name','data-toggle'=>'checkbox']) ?>
                    <?=Html::label("ファイル説明","search-detail",['class'=>'checkbox']) ?>
                </div>

and in JS file I call:

$("input:checkbox").radioCheck();

But when I click on the checkbox ,It can not work ,clicked but checkbox state not change

Following are include js files :

enter image description here




Aucun commentaire:

Enregistrer un commentaire