i have problem..
for(a=1;a<10;a++){
    $(".div").append("<div id="+a+"></div>")
        $.ajax({
              url: "file.php",
              data: "a="+a,
              type: "POST",
              async: false,
              success: function(data) {
                $("#"+a).html(data);
              }
        });
}
 $("div").click(function(){
        alert("it works");
 });
problem is:
is I didn't put there async: false data from file.php are only in last div so with id 9
but now there is async: false - so data are in every div so that is good
but if i want click while it was loading by ajax it doesn't work (only after finished all ajax-es)
how resolve this problem? (maybe the false is that am I using ajax. I can use getJSON ect..)
thanks for helping
 
     
     
     
     
    