I'm using the plugin Bootstrap Color Picker Sliders. The documentation for the plugin is here: http://www.virtuosoft.eu/code/jquery-colorpickersliders/.
For some reason, the onchange event provided with the plugin appears to be firing on the load of the page. I can't figure out why. Is this my doing or is this an issue with the plugin itself?
Example
Here's a fiddle of what I mean: http://jsfiddle.net/bV7qF/
<div class="hsl"></div>
$(".hsl").ColorPickerSliders({
flat: true,
previewformat: 'hsl',
order: {
hsl: 1,
preview: 2
},
onchange: function() {
alert("test");
}
});