Hi
Iam building a dynamic di tag with a onclick attribute inside a for loop. This onclcik attribute calls a function by sending 2 parameters.
for ex:
for (i=1;i<=9;i++)
{
var tempparam1=i;
document.write("<tr><td onclick=groupby(tempparam1)></td></tr>"
;
}
strangely everytime the groupby function receives the parameter as 9(last number in the loop) instead of diff numbers(0-9) for diff rows.
i tried ("<tr><td onclick=groupby("+tempparam1+"
"></td></tr>"
but in vain. Any ideas?
Badrinath Chebbi
Iam building a dynamic di tag with a onclick attribute inside a for loop. This onclcik attribute calls a function by sending 2 parameters.
for ex:
for (i=1;i<=9;i++)
{
var tempparam1=i;
document.write("<tr><td onclick=groupby(tempparam1)></td></tr>"
}
strangely everytime the groupby function receives the parameter as 9(last number in the loop) instead of diff numbers(0-9) for diff rows.
i tried ("<tr><td onclick=groupby("+tempparam1+"
but in vain. Any ideas?
Badrinath Chebbi