redho home | products | services
Web Design Forums

Web Design Forums  


Web Hosting, Web Design, Software and Web Development Forums  
 FAQFAQ   MemberlistArchive  Log inLog in   RegisterRegister 
         

geting id in the onClick method



 
Post new topic   Reply to topic    Web Design Forums -> JavaScript forum
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')"
  Reply with quote


Kopilman



Joined: 25 May 2006
Posts: 162
onclick="doStuff(this.id)"
  Reply with quote
ovigo22



Joined: 15 May 2006
Posts: 130
ahh, thank you sorry for the dumb q
  Reply with quote
Page 1 of 1
Post new topic   Reply to topic    Web Design Forums -> JavaScript forum


Dubai Forums - Expat Help | Vegan Chat | Java Programming | Free 3D tutorials and 3d textures | Paris Forum | EU Forum
Free Dubai Classifieds | Free London Classifieds | Jobs in London

High Quality, Custom 3d animation and Web Design solutions Royal Quality Web Hosting Services Vegetarian and Animal Rights news

Powered by phpBB © 2001, 2005 phpBB Group