The following view is giving me "Object doesn't support prop or method jCarouselLite". I have an almost identical page using plain html which works. Am I loading the javascript properly?
@using System.Web.Script.Services
@{
ViewBag.Title = "Home Page";
}
<script src="@Url.Content("~/Scripts/jquery-2.0.3.js")"></script>
<script src="@Url.Content("/Scripts/jcarousellite_1.0.2.js")"></script>
<script type="text/javascript">
$(function () {
// Add Carousel plugin to rotate images
$(".anyClass").jCarouselLite({
visible: 1,
auto: 3000,
speed: 800,
btnNext: ".next",
btnPrev: ".prev"
});
});
</script>
<button class="prev"><<</button>
<button class="next">>></button>
<div class="anyClass">
<ul>
<li><img src="/gallery/slide-1.jpg" width="250" height="150"></li>
<li><img src="/gallery/slide-2.jpg" width="250" height="150"></li>
<li><img src="/gallery/slide-3.jpg" width="250" height="150"></li>
</ul>
</div>