Set style for connector and endpoints on hover

Viewed 12

I'm trying to create a css style for all connections and endpoints which are connected to a specific element. I have managed to color all source/targets but I'm not managing to color the connections (lines)

Here is my current code...

var endpoints = jsPlumb.getEndpoints(this);

for (var i = 0; i < endpoints.length; i++) {
if (endpoints[i].connections[0] != null) {
    $(endpoints[i].connections[0].target).addClass('red_color');
    $(endpoints[i].connections[0].source).addClass('red_color');
}

}

0 Answers
Related