最新消息:雨落星辰是一个专注网站SEO优化、网站SEO诊断、搜索引擎研究、网络营销推广、网站策划运营及站长类的自媒体原创博客

javascript - Uncaught TypeError: Object function (a,b){return new e.fn.init(a,b,h)} has no method 'widget' - Sta

programmeradmin1浏览0评论

I am using Jquery-ui-multiselect-widget for converting noramal select box to multiselect MultiSelect Widget. Link for jquery UI pluggin :

HTML :

<select id='noOFRows' multiple="multiple" > <option value="10">10<option value="20">20<option value="30">30<option value="40">40<option value="50"> 50 </option> </select>

JS code :

    $(document).ready(function(){
       $("#noOFRows").multiselect();    
    });

but getting this error.

Error in Jquery.multiselect.js:

Error in mail index.php

I am using Jquery-ui-multiselect-widget for converting noramal select box to multiselect MultiSelect Widget. Link for jquery UI pluggin : https://github./ehynds/jquery-ui-multiselect-widget

HTML :

<select id='noOFRows' multiple="multiple" > <option value="10">10<option value="20">20<option value="30">30<option value="40">40<option value="50"> 50 </option> </select>

JS code :

    $(document).ready(function(){
       $("#noOFRows").multiselect();    
    });

but getting this error.

Error in Jquery.multiselect.js:

Error in mail index.php

Share Improve this question edited Jun 20, 2020 at 9:12 CommunityBot 11 silver badge asked Sep 25, 2013 at 13:28 Ritesh ChandoraRitesh Chandora 8,6705 gold badges23 silver badges39 bronze badges
Add a ment  | 

3 Answers 3

Reset to default 3

Looks like you are missing jQuery UI library because the widget framework is provided by jQuery UI

If you do not want any other widgets from jQuery UI, then go the the custom download option ans select only widget option and download, then add the jquery-ui-xxx.js file to the page after jQuery is included

There was one more case regarding the extensions you installed in your browsers. in some case the add blocker will be the root cause of these errors. In chrome you have "incognito window", make sure it working on that window.

The thing is, when you include jQuery UI library, you should make sure that this library is before the multiselect library.

Say:

<script src="JS/jquery-ui.min.js" type="text/javascript"></script>

<script src="JS/jquery.multiselect.js" type="text/javascript"></script>

与本文相关的文章

发布评论

评论列表(0)

  1. 暂无评论