Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- var newPlayerColor = document.getElementById('colorPicker').value;
- var input = document.createElement('INPUT');
- var newColorButton = new jscolor(input);
- alert(newColorButton.valueElement);
- input.style.backgroundColor = newPlayerColor;
- input.style.height = '20px';
- input.style.width = '20px';
- input.style.cursor = 'pointer';
- newDiv.appendChild(input);
- <button
- class="jscolor {valueElement:null,value:'66ccff'}"
- style="width:50px; height:20px;"></button>
Add Comment
Please, Sign In to add comment