Currently, I am utilizing the Bootstrap 4 color picker library which can be found at this link:
In my code, I have defined color pickers that look like this:
<div class="input-group cpicker">
<input type="text" class="form-control input-lg" value="#000000" id="txtModalDashboardSettings_HeaderColor">
<span class="input-group-append">
<span id="cp_dashboardHeaderColor" class="input-group-text colorpicker-input-addon"><i></i></span>
</span>
</div>
To implement the Bootstrap 4 colorpicker, I use the following javascript snippet:
$('.cpicker').colorpicker();
At a certain point in the code, the colors are changed programmatically. However, when I call $('.cpicker').colorpicker() again, it does not update the colorpicker color.
I am seeking advice on how to force all of the colorpickers to refresh/update if the input value is changed programmatically. Any suggestions?