In code I have a reference to a DOM element, in Jquery. How do I find out it\'s id? It maybe counter-intuitive, but I need to know that so I can do some manipulations on another
If you want the id then you can use
$("youelementselector").attr("id");
and if you want elements name then
$("youelementselector").attr("name");
See attr