By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
434,846 Members | 2,146 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 434,846 IT Pros & Developers. It's quick & easy.

how can i know which img was clicked

P: 2
i don't know how can i know which img was clicked

the problem is i am new to asp.net devloper and i use data list control and when i place such img on it the image will repeate as required and the images will have the same id so i want when click on any image to get its index "image[3]"

so can you give an example on the ordinary html page on how can i know which img was clicked ?
Jan 7 '08 #1
Share this Question
Share on Google+
1 Reply


acoder
Expert Mod 15k+
P: 16,027
Post your code so it can be adapted to solve your problem.
the problem is i am new to asp.net devloper and i use data list control and when i place such img on it the image will repeate as required and the images will have the same id so i want when click on any image to get its index "image[3]"
No elements should have the same id within one page. Are you sure it's the id which is the same?
Jan 7 '08 #2

Post your reply

Sign in to post your reply or Sign up for a free account.