Expand|Select|Wrap|Line Numbers
- for (i = 0; i <= 30; i++)
- {
- var obj = 'date_' + i;
- document.getElementById(obj).onmouseover = function (event) { alert(i) };
- }
i have added the above javascript to show the date on mouse over but no matter which date I go mouse over, it shows 30, and when i set i <= 10 it shows 10
i think it shows the final value of i,
please help me to fix it.
Regards