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?
- Limit number of Widgets in Sidebars
- check if registered sidebar is active & has widget content
- How to use wp_dequeue_style() for style enqueued in WP_Widget class
- Set Featured Image programmatically (in admin) with JavaScript?
- Programmatically edit the text of a widget
- Widget with random posts from a blog for external sites
- Ask user permission when activating a plugin
- How to enable / use new video / audio / images widgets in WordPress 4.8?
- How do i export the HTML from text widgets?
- Latest/Recent posts widget title link
- the_widget() and widget’s ID
- How to put Stack Exchange Flair as widget?
- Image Upload Widget Issue
- Wp Customizer event for when a new widget has been added
- wp_register_sidebar_widget() disappered my Widgets submenu – what am I doing wrong?
- Display single widget
- Drafts widget for admin page
- Global $wpdb is not showing correct data with function call
- Text widget doesn’t save the content
- Post ID displayed instead of title [closed]
- Color picker in widget appears twice when added via the Customizer
- How do I pass the id of my widget to javascript in the form function?
- Widget – link to page rather than absolute url
- Programmatically add widgets to sidebars
- Validating widget’s configuration data on Admin page
- Turn off “This is the Primary Sidebar Widget Area” message
- Inserting Read More Tag in Widget
- Display posts from category in post content?
- Widgets in WP 4.3 disappearing – How to fix?
- Widget background images missing on second blog excerpt page
- Removing side bar widgets from GovPress theme
- How to test if the widgetized area has any widgets?
- Saving widget gets an undefined variable
- Distinguish between different widgets of the same type
- Ajax request sends url rather than data
- links to Media Library content in sidebar per page
- Why is registering a sidebar for each page causing my sidebars to reset?
- widgets in footer?
- Quick Draft widget in weird place on dashboard after being re-added
- How can I remove WordPress element IDs and Class names in the HTML?
- Remove widgets on mobile front page without affecting desktop
- Widget display nothing
- Widget settings disappear after refresh
- How to display author meta in a sidebar widget
- Is it ok not to set widget in the main page of a one page WordPress Theme?
- Recent Posts Widget URL / Domain change
- New Custom Widget Call a Different Widget Function
- Show or hide custom menu widget in side bar conditionally
- Widget which displays thumbnails, but links to urls?
- Problem on register/login widgets