Click to See Complete Forum and Search --> : Send Dynamic data to js function


shvoong
08-01-2003, 05:43 AM
My application contains few Dynamic forms called FormX (when X is the number of the forum)

Here is my simple function:
function MessageCodeA(NumForm){

if (eleNum==NumForm){
form_NumForm.recepitmain.value +="<br>";
}
else if (eleNum==NumForm){
form_NumForm.recepitmain.value +="<br>";
}
}

How do I pass the value to the Form when the Form name changes dynamically.

10x

Nevermore
08-01-2003, 06:21 AM
If it is only the form name that changes, then you could refer to the inputs by id. Otherwise you will have to store a variable with the id (or whatever), and use it in place of the id in your code.