for(var i=0; i<participantNum; i++){
studentID = $('#txtID'+(i+1)).val();
alert(studentID);
//my php function call it's work normally request(php,paramiter,cb)
request("http://localhost/lastOrientation/2_registerValidate.php","studentID="+studentID,validateID);
}
I get value from each textbox by for loop and CALL php script to validate the student id
but the result come out randomly it's not arrange by order that it increment from for loop
,by the way all result come out. I know that it is because ajax request but can you advise
me how to get the result order in the way for loop does.
Thank in advance
sorry for my language.
requestuses ajax... if yes it is asynchronous.. that is the reason for the behaviour