calling dynamic form name
hi guys, please take a look at this
with this piece of code, i can access a value of a field inside a form. problem is, when i loop, i do this in naming my forms
on my link, i do this
but i cant access the proper value. what i would like is that if i pass id=2, then the value from formedit-2 will be taken, if i pass id=1, then the value from formedit_1 will be taken. but i cant make it.. i tried this
var test = 'formedit_' + id;
but it doesnt work, i think its in this "var test" is whats wrong, sorry, 0 JS skills, hehehe please help..