# Using colorpicker to change panel color

**URL:** <https://forum.kirupa.com/t/using-colorpicker-to-change-panel-color/298812>\
**Category:** flash\
**Created:** [October 25, 2009, 11:11pm UTC](https://forum.kirupa.com/t/using-colorpicker-to-change-panel-color/298812 "2009-10-25T23:11:23Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![mac345](https://avatars.discourse-cdn.com/v4/letter/m/8e8cbc/32.png) [@mac345](https://forum.kirupa.com/u/mac345)\
**Post date:** [October 25, 2009, 11:11pm UTC](https://forum.kirupa.com/t/using-colorpicker-to-change-panel-color/298812/1 "2009-10-25T23:11:23Z")

</div>

Hi,

I am having two panels with separate colorpickers in them. If i select a particular color in the colorpicker, then the border of that panel should change to that color.  
I am able to do this perfectly but, since i have written the same code for both colorpickers, when i select the other colorpicker the previous panel color is coming to the normal color i.e. default panel color.

If i want the panels to retain the color even after selecting the other colorpicker what should i do…  
I am using event.CHANGE on colorpicker and setting the style of borderColor for the panel.

Please provide me some suggestion on this.  
Thanks
