simply replace colorA
with this:
var colorA = ['green', 'red'];
jQuery addClass()
function accepts a class "name" not a class "selector".
simply replace colorA
with this:
var colorA = ['green', 'red'];
jQuery addClass()
function accepts a class "name" not a class "selector".