So I want to turn this comparison...
Code: Select all
if (ce00 == the_var_import)Code: Select all
if (ce00 == ii00)Here is the script...
Code: Select all
function fill_values(my_param){ for (var i=0; i<3; i++) //26 { var the_selector = i; var the_var_form = 'ce' + the_selector + '0'; var the_var_import = 'ii' + my_param + '0'; alert(the_var_form + ' ==?== ' + the_var_import); if (document.getElementById(the_var_form).value == the_var_import) {alert(the_var_form + 'match at ii' + the_selector + '0');} else {alert(document.getElementById(the_var_form).value + '\n\n' + the_var_import);} }} function fill_values_exec(){ for (var i=0; i<3; i++) //26 { fill_values(i); }}