I hate answering my own question, but hopefully this can help someone else with similar issues:
WordPress uses Iris color picker.
http://automattic.github.io/Iris/#
WordPress also creates a jquery widget with default settings for Iris.
The file can be found under wp-admin/js/color-picker.js
At first I was trying to pass values directly to iris(), which works, but that overrides the wordpress widget.
Once I found out about the widget, I wrote the following:
$(".wp-color-picker").wpColorPicker(
'option',
'change',
function(event, ui) {
//do something on color change here
}
);
The wpColirPicker accepts a custom function for the change event. So it runs first the default actions and then it allows you to add your own.
Related Posts:
- Enabling jquery when dragging available widget to sidebar area
- Ban certain widgets from certain sidebars
- Give Editor Access To Sidebar
- Prevent widgets removal
- How do I rebind event after widget save
- How do I save data from submitted form from widget
- Role that can edit only widgets, not other theme options
- How can I delete all inactive widgets?
- Reorder dashboard widgets
- Using tabs in admin widgets [closed]
- Widget “Save” resetting jQuery hidden fields
- jQuery does not work in widget backend
- Trigger Submit Event when Widget is added to Sidebar
- How to enable “shift-click to edit this widget” functionality on a custom widget?
- Multiple users editting widgets
- dynamic_sidebar() returns false in admin section
- Using jQuery in widget development
- Widgets not expanding on wordpress 3.3 widget dashbord
- cannot drag and drop widgets since wordpress 3.2.1
- AJAX Contact Form Issue
- jQuery UI inside widget on admin page
- WP_enqueue_script() loads them always in wp_footer()?
- How to get “Widget Logic” plugin’s input value in a custom widget code (to display on the Widget admin page)
- Extending WP_Widget throws error when Monster Widget used
- Wrap the widget content with a div and get the widget title outside? [closed]
- Access Customizer widget instance form
- How i can widget ID get after drag for wordpress with jquery?
- Grabbing how Many Posts by Month for a Dashboard Widget
- How to change color of registered widget areas in admin?
- wordpress widget missing jquery
- In which folder can we find the core wordpress Widgets such as Menu Widget
- Making jQuery .change() event persistent after widget save
- Adding a single text input field to a custom Dashboard widget
- How to change widget’s form color in admin?
- Jquery checkbox -show posts with checked tags
- Editing Help Section
- Allow users to give a dashboard widget a custom name using ACF
- How to customize WordPress dashboard for different users?
- Reposition the widget sidebar in Appearance->Widgets
- Handling dozens of sidebars
- Widget Areas Still Appearing in WP ADMIN When They Shouldn’t
- Using AJAX in WordPress Widget
- Creating an custom admin page for editing widgets
- Custom tabs widget don’t work in google chrome, is blocked, do not change the tabs. Why?
- Multiple widgets in wordpress
- jQuery “on” handler does not fire on newly inserted widgets [closed]
- Database size Widget
- Using AJAX in a Widget to Sort items [closed]
- Unable to add options on dashboard widget ?
- How to add the “page” post type to Recent Activity widget displayed in admin?
- My theme didn’t appear sidebar area
- Adding pagination to my theme [closed]
- Widget settings disappear after refresh
- How do I enable the admin form for a custom widget that is called in a sidebar template, not to widget area?
- Execute function with jQuery if widget added or removed?
- Before_widget won’t show up
- How to check a category checkbox using JavaScript
- Accessing WooCommerce product categories before initialising widget areas
- Create a new recent post widget
- Make widget with media upload repeatable
- Why does my $instance within a custom widget return empty (undefined index)?
- How to create sidebar from “scratch”?
- Display current tag archive’s name and description in sidebar
- How to display author meta in a sidebar widget
- Title not Emptying in a Widget
- Widget Registration Problem
- How do I add after the tag in WordPress widget?
- Reload widget with AJAX
- Function for widget titles
- Is it possible to dynamically output the name of the widgets?
- Creating a simple button inside of a widget
- A checkbox Option for description in Widget
- How do I add footer widgets to the StudioPress Monochrome Pro theme?
- wp_list_widget_controls() undefined
- Dashboard controls have all stopped working
- My widgets do not save
- Custom archive widget drop down menu
- How to move widget area to another section in WordPress Customizer
- Custom Admin Section
- How to prevent Widget from echoing to wrong position in DOM
- Search box displaying just title → Default WordPress Widget for Search Box
- Render repeatable widget fields properly with Backbone.js
- Need two sidebar (right and left)in Twenty Seven theme
- I accidentally added a widget area called sidebar 1
- How to add styling and script to a custom widget plugin
- Get a list of all Widgets registered in WordPress admin widgets-area
- Hiding the widget meta box in the Appearance->Widget screen
- Is it ok not to set widget in the main page of a one page WordPress Theme?
- Widget outputting JS as plain text
- Fatal Error (Call to a member function… ) on production site, but not development site
- wp_registered_widgets doesn’t contains my widgets
- Show modal only to some roles
- Sidebar widgets are over the content in mobile mode, how can I fix it? [closed]
- How to get widget content in WordPress based on it’s ID?
- How to implement widgets error output with data validation?
- How can I write this code snippet so that it echo’s the response when submitting empty fields?
- The WP_Widget class seems to run many times on a page load
- What is the difference between widget object and widget instance?
- How do you add a widget to the side of a page
- wp_enqueue_media(); in multiple widgets