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 have a reference to a DOM element, you can simply access the ID with this.id or element.id.
this.id
element.id
Here is a list of properties, HTMLElements have.
HTMLElement