I am changing the class of an element with the following
$(\"#\"+data.id).addClass(\"highlight\")
Given the list below.
<
try: $(".highlight").removeClass("highlight");. By selecting $(".edgetoedge") you are only running functions at that level.
$(".highlight").removeClass("highlight");
$(".edgetoedge")