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

I am using Jquery-ui-multiselect-widget for converting noramal select box to multiselect MultiSelect Wi

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>

发布者:admin,转转请注明出处:http://www.yc00.com/questions/1745628825a4636977.html

相关推荐

发表回复

评论列表(0条)

  • 暂无评论

联系我们

400-800-8888

在线咨询: QQ交谈

邮件:admin@example.com

工作时间:周一至周五,9:30-18:30,节假日休息

关注微信