Same class results for every elements on each selection
Opened this issue · 1 comments
sovoboys commented
(Sorry for my English)
For explain this issue, look here https://jsfiddle.net/sovoboys/byw5Lgtr/1/.
It seems like this plugin will read background-color value from only the first element, and add the same class to every elements - as the example shown, all text are white even on the yellow or transparent background.
I'm not sure if I understand your plugin usage correctly, should it be checked for background-color separately for each element, right?
rpg321 commented
Slightly old but if you or anyone else still needs it, you need to loop through all of the elements with the same class if you want to use it like in the above jsfiddle.
$('.check-color').each(function(){ $(this).colourBrightness(); });