i made a light box and i am having a problem in a step where on click i start a function but i also want to add a class but when i use this code i wrote i am not able to add class on click and it adds its automatically when the light box loads up . here is the line of the whole code i am trying to work out
play: this.list.find(".btnPlay").click(g.play).addClass("btnPlayOn"),
using this i am able to call the function g.play but how to use addclass on click i am not able to achieve this any help on this?