Reinitiate the Colorpicker after inserting html with ajax #135
SoulFliktioN
started this conversation in
Show and tell
Replies: 1 comment 14 replies
-
You don't need to do any of that, all you need is to call $.ajax({
// ajax options
}}).done(function( data ) {
Coloris({ /** your options **/ });
}); |
Beta Was this translation helpful? Give feedback.
14 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
First of all, thanks for this pretty and easy to use script!
I had problems reinitiating the colorpicker after adding some new fields with ajax. So i don't know if there is any better and more correct way but here is my solution:
Creating a custom event
const colorisreinitiate = new Event("COLORISReinitiate");
I changed the DOMReady function to:
Beta Was this translation helpful? Give feedback.
All reactions