I can't figure out why I can't get an html element like this:
<input name="ctl00$body$frmViewODL$ListViewParametri$ctrl0$txtParametroValoreNum" type="text" value="1" id="body_frmViewODL_ListViewParametri_txtParametroValoreNum_10 " class="boxNum" style="width: 60px">
with this jQuery:
$('#body_frmViewODL_ListViewParametri_txtParametroValoreMax_10 ')
I have tried removing/adding the spaces at the end :-)
PS: If i try
document.getElementById('body_frmViewODL_ListViewParametri_txtParametroValoreMax_10 ')
it is ok.
EDIT
The complete code is a little more complicated...
I have a ListView and I use the ClientIDRowSuffix to let asp.net append the Record key to the id of the control. I want to update an array of values(record) in a single post.
So In html I have an array of TextBox, like this:
<input name="ctl00$body$frmViewODL$ListViewParametri$ctrl0$txtParametroValoreNum" type="text" value="1" id="body_frmViewODL_ListViewParametri_txtParametroValoreNum_10 " class="boxNum" style="width: 60px">
<input name="ctl00$body$frmViewODL$ListViewParametri$ctrl1$txtParametroValoreNum" type="text" value="2" id="body_frmViewODL_ListViewParametri_txtParametroValoreNum_11 " class="boxNum" style="width: 60px">
<input name="ctl00$body$frmViewODL$ListViewParametri$ctrl7$txtParametroValoreNum" type="text" value="8" id="body_frmViewODL_ListViewParametri_txtParametroValoreNum_23 " class="boxNum" style="width: 60px">
...