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

javascript - How to process users in one specific order using map o each function? -

java - Two interface have same method name with different return type -

javascript - Linking from page A to a specific iframe on page B -