Repository navigation
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 **/ });
}); |
14 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
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:
All reactions