Finding the "index" of a srcElement
Posted on 2000-04-22
I have several "items" on a web page with the same ID. When I call a function from any of the items I can get the item name by using
srcElement.id . Does anybody know how I can get the index of the srcElement, i.e. is it the 1st, 2nd or 3rd item called "MyDiv".
I know I can reference a particular element in an arry by using:
Makes sense? I hope so. Thanks for any help you can give.