if am accesssing any element by id using following code.
$("#container_svg_John_0") it will return object that contains the element in index of "0". that is object of [0] will contains the element. i want to know in some cases finding other elements will gives the element directly (i.e DOM element returned). what is the difference between those.
if am accessing the id of this it will return undefined.
$("#container_svg_John_0").id but when i rewrites this like
$("#container_svg_John_0")[0].id it will return the id of element. each and every time accessing like that above. how can i access the object which contains only single element in "0"th position instead of specifying [0]. and how it differs in other cases ?