I use a jquery function on a div.class. In the function I change the class on $(this) so that the function may only be called once per div. Inspecting the element with Firefox web developer options shows the class as changed, yet the click event for the original class will still fire on the element with the new class. Code below; I also tried to implement this with toggleClass, exact same results. Any suggestions?
$('div.cluebox').click(function(e) {
$( this ).removeClass("cluebox").addClass("emptyBox");;
});
Thanks