最新消息:Welcome to the puzzle paradise for programmers! Here, a well-designed puzzle awaits you. From code logic puzzles to algorithmic challenges, each level is closely centered on the programmer's expertise and skills. Whether you're a novice programmer or an experienced tech guru, you'll find your own challenges on this site. In the process of solving puzzles, you can not only exercise your thinking skills, but also deepen your understanding and application of programming knowledge. Come to start this puzzle journey full of wisdom and challenges, with many programmers to compete with each other and show your programming wisdom! Translated with DeepL.com (free version)

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

matteradmin6PV0评论

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>

Articles related to this article

Post a comment

comment list (0)

  1. No comments so far