Coding & Programming > JavaScript Forum

Dynamicly getting id of an element

(1/1)

Xatsker:
I want to get the id of this element so I can use it. How would I do it? (I want the <a> to have no id yet still be able to be called from javascript)

Sevam:
You can check the results of getElementsByTagName and locate the one you want.

Navigation

[0] Message Index

Go to full version