Hi everyone,
I'm using anchor within the for loop which means the number of anchors(links) dynamically varies.
Within the anchor i'm calling one javascript function and passing the dynamic value (select ) in that. The problem is even i click any link only last value i.e..select value at i = j is passing because the looping will happen during loading the page itself...so how can i pass exact values? Do i need to set any ID for the tag?If so how? Can Anybody please help?
for(i = 1; i < = j; i++)
{
select = document.forms['MessageNew'].userId.options[i].value;
selection[i] = '<a onclick="javascript:assignValue(select);"><font size="2">'+selection1+'</font></a><br>'
}