Dynamicly getting id of an element

Author Topic: Dynamicly getting id of an element  (Read 3305 times)

Xatsker

  • Guest
  • Trade Count: (0)
Dynamicly getting id of an element
« on: 04-21-2010, 16:35:13 »
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)


Offline Sevam

  • Administrator
  • Trade Count: (0)
  • *****
  • Thank You 89
  • Posts: 358
  • Karma: 12
  • Gender: Male
    • Trust Directory Project
Re: Dynamicly getting id of an element
« Reply #1 on: 04-21-2010, 16:35:47 »
You can check the results of getElementsByTagName and locate the one you want.

 

Related Topics

  Subject / Started by Replies Last post
0 Replies
850 Views
Last post 01-19-2017, 02:39:52
by beingchinmay