I'm try to add click event on a Jquery Element using variable "element"..
but the variable into each Event change when I change this variable outside the "click"
like that:
$(document).ready(function () {
var counto = 5;
for (i = 1; i <= counto; i++) {
$('.link.' + i).click(function (event) {
event.preventDefault();
$('div.output').html(i);
});
}
});
sorry for my worse english :-)
Thank You