Chosenプラグインを以下ページを参考に適用させたいのですが、画面上反映されません。
言語はphpでフレームワークはcakephp2です。
■Chosenプラグインページ
https://harvesthq.github.io/chosen/
→Standard Select を適用したいです
■行った事
①Chosenファイルダウンロード
②以下必要ファイルを設置
③読み込み部分の実装
④以下selectタグ部分かつJSの実装
■設置ファイル
・jquery-3.2.1.min.js
・chosen.jquery.min.js
・chosen.min.css
■実装箇所
<td><?php echo $this->Form->select('name', $list, array('class' => 'form-control chosen-select')); ?></td>
<script> $('.chosen-select').chosen(); </script>
※追記
デベロッパーツールのコンソールに以下エラーが出ております。
customers:429 Uncaught TypeError: $(...).chosen is not a function at customers:429 (anonymous) @ customers:429 Uncaught TypeError: $.cookie is not a function app.js:18 at HTMLDocument.<anonymous> (app.js:18) at l (jquery.min.js:4) at Object.fireWith [as resolveWith] (jquery.min.js:4) at Function.ready (jquery.min.js:4) at HTMLDocument.S (jquery.min.js:4) jquery-3.2.1.min.js:2 Uncaught TypeError: $(...).size is not a function at HTMLDocument.<anonymous> (customers:439) at j (jquery-3.2.1.min.js:2) at k (jquery-3.2.1.min.js:2) jquery-3.2.1.min.js:2 Uncaught TypeError: $(...).size is not a function at HTMLDocument.<anonymous> (customers:468) at j (jquery-3.2.1.min.js:2) at k (jquery-3.2.1.min.js:2)
間違い等ございましたら、ご教示頂きたいです。
宜しくお願い致します。
あなたの回答
tips
プレビュー