2
I’m using the jQuery Colorpicker only this giving the following error:
Uncaught Typeerror: Object [Object Object] has no method 'Colorpicker'
My code is 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>
Someone can help me with this mistake?
Enter here > http://www.digitalmagicpro.com/jPicker/
– Samir Braga
this one is too big, gets ugly, has to be something more subtle @Samirbraga
– Caio Gomes
The error you are receiving gives me the idea that the . js file did not load. You can confirm that your url is correct?
– Sergio