Reputation: 733
cy.add([
{group: "nodes", data: {id: "default"}, renderedPosition: pos},
]);
I want to access this node by id. and then change it's Id to something else. I tried accessing the node by
$("#default").attr("id", nodeId );// where nodeId is a varaible.
It doesn't works as it is not an attribute of the node. How can I access this node?
Upvotes: 1
Views: 4711