Sunday, May 19, 2024
 Popular · Latest · Hot · Upcoming
107
rated 0 times [  113] [ 6]  / answers: 1 / hits: 7546  / 5 Years ago, fri, february 1, 2019, 12:00:00

I don't know what I'm doing wrong but I get this error:



Uncaught TypeError: $(...).multiselect is not a function


at HTMLDocument. (Register:715)


at fire (jquery-1.10.2.js:3062)


at Object.fireWith [as resolveWith] (jquery-1.10.2.js:3174)


at Function.ready (jquery-1.10.2.js:447)


at HTMLDocument.completed (jquery-1.10.2.js:118)



HTML


<!-- Include Twitter Bootstrap and jQuery: -->
<link rel="stylesheet" href="~/Content/bootstrap.min.css" type="text/css"/>
<script type="text/javascript" src="~/Scripts/jquery-1.10.2.min.js"></script>
<script type="text/javascript" src="~/Scripts/bootstrap.min.js"></script>

<!-- Include the plugin's CSS and JS: -->
<script type="text/javascript" src="~/Scripts/bootstrap-multiselect.js"></script>
<link rel="stylesheet" href="~/Content/bootstrap-multiselect.css" type="text/css" />

<!--Example-->
<select id="example-getting-started" multiple="multiple">
<option value="cheese">Cheese</option>
<option value="tomatoes">Tomatoes</option>
<option value="mozarella">Mozzarella</option>
</select>

Javascript


<script type="text/javascript">
$(document).ready(function() {
$('#example-getting-started').multiselect();
});
<script>

More From » jquery

 Answers
1

I caught the error.
I had a previous jquery link in the _Layout view.



Thanks everyone for helping me.


[#9156] Wednesday, January 30, 2019, 5 Years  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
cartersinceren

Total Points: 442
Total Questions: 116
Total Answers: 106

Location: San Marino
Member since Thu, Jun 30, 2022
2 Years ago
cartersinceren questions
Thu, Nov 5, 20, 00:00, 4 Years ago
Thu, Apr 16, 20, 00:00, 4 Years ago
Thu, Oct 18, 18, 00:00, 6 Years ago
;