I am playing with jsplumb, but I am not able to delete the connection between two divs having only the id of one div.
Firtsly, you can find your connection by using sourceId and targetId
var connections = jsPlumb.getConnections({
source: sourceId ,
target:targetId
});
This will return an array of jsPlumb connections, so you can delete all connections related to this source and target id.
for(var i=0;i < connections.length;i++) {
jsPlumb.deleteConnection(connections[i]);
}
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With