$(document).ready(function(){
for(var i=0; i<7; i++){
$("#id_"+i).hover(function(){ // i in this line is 1->7
alert(i); // i in this line alway is 7 (I want i: 1-7 )
});
}
});
I use onmoveover and onmouseout in html to call function is not problem but i see it so long coding, anyone help me to solve this problem. Thankyou so much.