My code is giving the error '
Uncaught SyntaxError: Unexpected end of input'
- <html>
- <head>
- <script type="text/javascript" src="jquery.js"></script>
- <link rel="stylesheet" media="screen" type="text/css" href="css/colorpicker.css" />
- <script type="text/javascript" src="js/colorpicker.js"></script>
- <script type="text/javascript">
- $(document).ready(function() {
- $('#colorpickerHolder').ColorPicker({
- flat: true,
- onChange: function (hsb, hex, rgb) {
- $('#add').click(function(hex){
- $('#pallette').css('backgroundColor', '#' + hex);
- });
- }
- });
- </script>
- <style>
- </style>
- </head>
- <body>
- <div id="pallette" style="width:200px;height:600px;">
- </div>
- <div id="colorpickerHolder" style="position: absolute; right: 10px; bottom: 10px;">
- <div style="position:relative">
- <button id="add">Add Colour</button>
- <button id="remove">Remove Colour</button>
- </div>
- </div>
- </body>
- </html>
can anyone help please?