65
rated 0 times
[
67]
[
2]
/ answers: 1 / hits: 7181
/ 10 Years ago, thu, april 10, 2014, 12:00:00
I am trying to make a custom scrollbar and my javascript that is supposed to make the scrollbar draggable won't work. (I am using Chrome to test it)
Why is this returning an error?
// JavaScript Document
$(document).ready(function(){
$(#scrollbar-piece).draggable({axis: y});
Uncaught TypeError: undefined is not a function
})
Here is the html:
<head>
<meta charset=utf-8>
<script src=http://ajax.googleapis.com/ajax/libs/jquery/1.10.2/jquery.min.js></script>
<script src=theScriptThatHasAProblem.js></script>
</head>
<body>
<div class=page-container>...</div>
<div id=scrollbar>
<div id=scrollbar-piece></div>
</div>
</body>
More From » jquery