I'm using the jQuery ColorPicker but it is giving the following error:
Uncaught TypeError: Object [object Object] has no method 'ColorPicker'
My code looks like this:
<html>
<head>
<script type="text/javascript" src="/js/jquery-1.10.2.min.js"></script>
<script type="text/javascript" src="/js/jquery-ui-1.10.4.custom.min.js"></script>
<script type="text/javascript" src="/js/bootstrap.min.js"></script>
<script type="text/javascript" src="colorpicker/js/colorpicker.js" charset="utf-8"></script>
<script type="text/javascript" src="colorpicker/js/eye.js" charset="utf-8"></script>
<script type="text/javascript" src="colorpicker/js/utils.js" charset="utf-8"></script>
</head>
<body>
<div id="style-colors">
<div class="cores">
<label for="">Cor</label>
<div class="sc-background">
<div style="background-color: #0000ff"></div>
</div>
</div>
</div>
<script type="text/javascript">
$(document).ready(function(){
$('.sc-background').ColorPicker();
});
</script>
</body>
</html>
Can anyone help me with this error?