Inline Color Picker Control from Script

The simplest way to implement the Color Picker Control is to do so entirely via script. In this example, a Color Picker is placed on the page via script and allowed to create its own DOM structure. In cases where you've provided other form controls on the page for color specification (ie, controls not dependent on JavaScript), this approach allows you to provide a richer visual experience for sighted users with JavaScript enabled.