112
rated 0 times
[
114]
[
2]
/ answers: 1 / hits: 80090
/ 11 Years ago, sun, may 12, 2013, 12:00:00
I'm a bit puzzled by the following: Let's say I've got a paragraph element with the id of para
. Using Chromes console, if I say
document.getElementById(para)
I'm returned with the HTML snippet <p id=para>....</p>
, whereas if I use for instance the Javascript library D3's selection method and say
d3.select(#para)
I'm returned with the DOM node and can access all the properties and methods of the paragraph element.
Why this difference?
More From » dom