how can i set live method in jquery 50 times?
I am using javascript and ajax and i don't want to use any asp.net control .
When user type 50 and focusout from textboxt1 , a table with 50 row is dynamically generated,
$("#textbox1").focusout(function () {
buildtable();
});
for first row :
var i = 1;
$("#MyGrid1 tr td.txt2" + i + "").find("input.txt2" + i + "").live('focusout', (function () {
// do anything
}));
and work for first row.
but if i use ::
for(i=1;i<51;i++){
$("#MyGrid1 tr td.txt33" + i + "").find("input.txt33" + i + "").live('focusout', (function () {
// do anything
}));
}
the first i is 50 and then just work for last row. (obvious)
how can i attach live for all rows?