javascript - How to include the variable in a JQuery when using FOR loops -
if have loop involves me going through element in html jquery. how so? example:
if (fieldtype =='date') { (i=0;1<4;i++) { $('#aor_conditions_value\\[0\\]\\[i\\]').val(); //do more stuff } }
the problem is 'i' in jquery not being acknowledged.
need make for(var = 0; < 4; i++){
you left out var
meant i < 4
not 1 < 4
return true
.
Comments
Post a Comment