How to remove an attribute in D3.js? How to remove an attribute in D3.js? javascript javascript

How to remove an attribute in D3.js?


From the API documentation for attr

A null value will remove the specified attribute

So it looks like you want .attr('disabled', null).