I have class in event. I want click class in event to add class.
This is the code I wrote.
scheduler.attachEvent("onClick", function (id, e){
$("#"+id+" .text-activity").click(function() {
$("#"+id+" .tooltipbox").toggleClass("active");
});
$("#"+id+" .btn-action").click(function() {
$("#"+id+" .box-action").toggleClass("active");
});
return true;
});
This code double-click it to add a class.
I want a single click to add a class.