Okay.
Im mixing javascript and php and in one section, I use php to draw numerous rows from a database.
Each row is shown in a line of input boxes and on each row, a number in the name is incremented.
Like so...
/-------------------------\
| inputa1 inputb1 inputc1 |
| inputa2 inputb2 inputc2 |
| inputa3 inputb3 inputc3 |
\-------------------------/
Now the problem is, that onBlur, each input field runs a function and sends their name.
myFunction(this.name);
In the function, it does some stuff and then resets the value of the field. But I don't know how to do it because its a variable.
document.myForm.fieldName.value doesnt seem to work because it looks for a field called fieldName instead of the variables actual value.
Any ideas anyone? Theres probably a really simple explanation but I cant seem to find it anywhere
Thanks in Advance