javascript - How to solve Uncaught TypeError: $(...).carouFredSel is not a function at -


i have mvc project, , have created actionresult, code in view:

@{     layout = string.empty; } <div class="weather-widget-container">     <!--<div class="weather-widget-title">Метео</div>-->     <ul style="margin-top: 5px;  float: left" id="vremenska"></ul>     <img id="weather-loading" style="height:16px; width:11px; margin-top: 5px; float: right;  margin-right: 5px; " src="/vremenskax/ikoni/loading.gif" /> </div>   <script>         window.rostusefunction = []; </script>  <script>         (var = 0, length = window.rostusefunction.length; < length; i++) {             window.rostusefunction[i]();         } </script>    <script src="../scripts/jquery-3.1.1.min.js"></script> <script type="text/javascript" src="../vremenskax/js/jquery.caroufredsel-6.2.1-packed.js"></script> <script type="text/javascript" src="../vremenskax/meteopro2.js"></script>  <link href="~/content/meteopro2.css" rel="stylesheet" /> 

when send request : localhost/vremenska/index page ok, when call page localhost/vesti/aktuelno renderaction:

@{html.renderaction("index", "vremenska");} 

when open localhost/vesti/aktuelno have error:

uncaught typeerror: $(...).caroufredsel not function

at successmeteo (meteopro2.js:18)

at object. (jquery-3.1.1.min.js:4)

at (jquery-3.1.1.min.js:2)

at object.firewith [as resolvewith] (jquery-3.1.1.min.js:2)

at (jquery-3.1.1.min.js:4)

at htmlscriptelement.c (jquery-3.1.1.min.js:4)

at htmlscriptelement.dispatch (jquery-3.1.1.min.js:3)

at htmlscriptelement.q.handle (jquery-3.1.1.min.js:3)

what wrong, , how solve it?


Comments

Popular posts from this blog

node.js - Node js - Trying to send POST request, but it is not loading javascript content -

javascript - Replicate keyboard event with html button -

javascript - Web audio api 5.1 surround example not working in firefox -