redho home | products | services

Programming Forums


Community for Java, PHP, Perl C, ASP and Python programmers
Tuesday 23 July 2019 13:17

Ask your IT question here

geting id in the onClick method



 
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.    Programming Forums -> JavaScript forum
View previous topic :: View next topic  
Author Message
ovigo22
Enthusiastic Coder


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
Enthusiastic Coder


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


Joined: 15 May 2006
Posts: 130
ahh, thank you sorry for the dumb q
Reply with quote
 
Page 1 of 1
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.    Programming Forums -> JavaScript forum


Dubai Forums - Expat Help | Vegan Forum | Java Programming | 3d Design Resources | 3d Forum | 3D Jobs | 3D Textures | Paris Forum | Europe Forum
Dubai Classifieds | Dubai Property | Jobs in Dubai | Free London Classifieds | Jobs in London UK

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

© 2018 RedHo