I have a page with different select
s (they have no class, no id).
They are in different div
s and different sections of the page (they are not under the same parent).
(These are events on a calendar, each one has different options using select
s).
I need to know how to get the index (or number) of the clicked select
each time someone clicks on one.
so far I have:
var nodes = document.getElementsByTagName('select');
var me = nodes.indexOf( $(this) );
but it always returns 1..