How can I make jscolor colorpicker to work on a div?
问题 I am using jscolor colorpicker which can only be attached to button element or input element.I want to use it for div.I tried this way- https://jsfiddle.net/anuranpal/Lead7c7q/43/ CSS edit-color-container { border: 1px solid gainsboro; height: 70px; width: 70px; text-align: center; } .select-button { background: none!important; border: none; padding: 0!important; cursor: pointer; display: block; width: 100%; height: 100%; -moz-user-select: none; -webkit-user-select: none; /* this will work