I have
<text id="element.id.with.dots" x="10" xml:space="preserve" y="10" stroke="none">
How can I select it using d3.select? This doesn't seem to work, it returns null
var textElem = d3.select("text[id=element\\.id\\.with\\.dots]");
and this :
var textElem = d3.select("text[id=element.id.with.dots]");
gives me error in Firebug console window:
SyntaxError: An invalid or illegal string was specified