geting id in the onClick method
|
| View previous topic :: View next topic |
| Author |
Message |
ovigo22
Joined: 15 May 2006 Posts: 130
|
I have an element in a page, I would like to get it's id in the onClick method. anyone know off the top of their head how to do that?
OnClick="doSOmething('this-elements-id')" |
| |
|
|
|
|
Kopilman
Joined: 25 May 2006 Posts: 162
|
| onclick="doStuff(this.id)" |
| |
|
|
ovigo22
Joined: 15 May 2006 Posts: 130
|
| ahh, thank you sorry for the dumb q |
| |
|
|
|
|