Hi there,
I have an array of spans with the onClick set something like this:
In my span_onClick() function I want to know which span was clicked by getting the span's index in the array. Anyone know the function That I can call to get the elements array index?
Also, does anyone know of a good javascript reference where I can find these answers from myself?
________________________
JoelMac
I have an array of spans with the onClick set something like this:
Code:
<span id="aSpace" onClick="span_onClick(this);"></span>
In my span_onClick() function I want to know which span was clicked by getting the span's index in the array. Anyone know the function That I can call to get the elements array index?
Also, does anyone know of a good javascript reference where I can find these answers from myself?
________________________
JoelMac