I have a html code like below. I would like to know how to identify the sessionEventsDecorator[0].startDateStr, sessionEventsDecorator[1].startDateStr dynamically in the javascript. The purpose is to make sure the user don't enter year value greater than 2013.
<input id="sessionEventsDecorator[0].startDateStr" name="sessionEventsDecorator[0].startDateStr" class="text small" onchange="formDirty();" type="text" value="Mar 05, 2013"/&rt;
<input id="sessionEventsDecorator[1].startDateStr" name="sessionEventsDecorator[1].startDateStr" class="text small" onchange="formDirty();" type="text" value="Mar 05, 2013"/&rt;
document.getElementById("sessionEventsDecorator[0].startDateStr")...