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

Popular posts from this blog

Fail to load namespace Spring Security http://www.springframework.org/security/tags -

sql - MySQL query optimization using coalesce -

unity3d - Unity local avoidance in user created world -