我正在使用pqSelect进行多项选择。但我不能在
中添加pqSelect初始化程序$(function () {
};
。它显示错误Uncaught TypeError:$(...)。pqSelect不是函数
$(function () {
$("#currentloc").pqSelect({
singlePlaceholder: 'Your current city *',
checkbox: true //adds checkbox to options
}).pqSelect();
});
答案 0 :(得分:0)
你安装了这个插件吗?据我所知,.pqSelect需要这个插件: http://paramquery.com
在此处下载:https://github.com/paramquery/select/archive/v1.3.0.zip
请注意,paramquery需要jQuery和jQueryUI才能工作。
在您的HTML中:
<script type="text/javascript" src="path to pqgrid.min.js" ></script>
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.11.3/jquery.min.js"></script>
<script src="https://ajax.googleapis.com/ajax/libs/jqueryui/1.11.4/jquery-ui.min.js">