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

FlatUI checkbox not working in Yii2 #219

Closed
miyasita1958 opened this issue Apr 28, 2016 · 1 comment
Closed

FlatUI checkbox not working in Yii2 #219

miyasita1958 opened this issue Apr 28, 2016 · 1 comment
Labels

Comments

@miyasita1958
Copy link

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

Please tell me what wrong?
Thanks

@StefanYohansson
Copy link
Contributor

StefanYohansson commented Apr 28, 2016

Hi @miyasita1958

You need to call:

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

without "C" capitalized.

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

No branches or pull requests

2 participants