accessing id property via javascript

Posted by webzide on Stack Overflow See other posts from Stack Overflow or by webzide
Published on 2010-05-20T18:31:21Z Indexed on 2010/05/20 18:40 UTC
Read the original article Hit count: 205

Filed under:
|

Dear experts

Is there a way to access the ID of an dom element?

I don't mean using the getElementById attribute to find out a array of objects.

Bascially I already know the DOM element and that object reference is at hand.

All I need is to access the ID property.

I know something like

if(element.id==value)

won't work.

Thanks in advance.

© Stack Overflow or respective owner

Related posts about JavaScript

Related posts about dom