I have many elements with same name:
<input type="text" name="Education[GraduationDate][0]" />
<input type="text" name="Education[GraduationDate][1]" />
<input type="text" name="Education[GraduationDate][2]" />
<input type="text" name="Education[GraduationDate][3]" />
I want jquery give me the index number of selector name, so if I select first one give me number (0), and so on.
I did this with jquery:
var arrayname = $(this).attr('name');
var arrayindex = arrayname.substring(24,25);
arrayindex return me the Index that I want, but I think this is not good way to do that, because maybe You have index with 2 digit number, so the substring not work fine.
Please advice ..