Forum Replies Created

Viewing 1 replies (of 1 total)
  • Thread Starter Er_Ankur

    (@er_ankur)

    Also my console show some colorpicker error
    Object [object Object] has no method ‘ColorPicker’
    here is the segment of code—-

    <div id="default_backgroundcolor" class="s_box">
    			<script type="text/javascript">
    
    				jQuery(document).ready(function($) {
    				  $('#solid_backgroundcolor').ColorPicker({
    Uncaught TypeError: Object [object Object] has no method 'ColorPicker'
    					onSubmit: function(hsb, hex, rgb) {
    						$('#solid_backgroundcolor').val('#'+hex);
    					},
    					onBeforeShow: function () {
    						$(this).ColorPickerSetColor(this.value);
    						return false;
    					},
    					onChange: function (hsb, hex, rgb) {
    						$('#solid_backgroundcolor').val('#'+hex);
    						$('#cp_solid_backgroundcolor div').css({'backgroundColor':'#'+hex, 'borderColor':'#'+hex});
    						$('#cp_solid_backgroundcolor').prev('input').attr('value', '#'+hex);
    					}
    				  })
    				  .bind('keyup', function(){
    					$(this).ColorPickerSetColor(this.value);
    				  });
    				});
    
    			</script>

Viewing 1 replies (of 1 total)