I am using ASP.Net MVC which has created an id for a textbox for an object which is deep within my object tree as follows:
<input id="evt_SessionLinks[0]_Sessions[0]_TimeTables[0]_TimeWindows[0]_Finish" name="evt.SessionLinks[0].Sessions[0].TimeTables[0].TimeWindows[0].Finish" type="text" value="" class="clockPick"/>
I am trying to select this field with the following Jquery selector:
var e = $("#evt_SessionLinks[0]_Sessions[0]_TimeTables[0]_TimeWindows[0]_Finish");
If I run my code, place a breakpoint and inspect e
the variable is show to have length
of 0.
If I change the id and selector to be id='Finish'
/'#Finish'
. Then length
= 1.
I think I am attempting to select the element correctly? Is there some sort of restriction on the length of id that the selector can find?