我使用3选择。第二和第三遍AJAX。我只有在TIMEOUT之后才选择第三个数据。缺少AJAXSTOP数据怎么了?
PHP已满:https://pastebin.com/MArvwz4R
脚本已满:https://pastebin.com/syBUnCnq
$(document).ready(function() {
$(".btnSelect").click(function() {
var currentRow = $(this).closest("tr");
var col0 = currentRow.find("td:eq(0)").html();
document.getElementById('id').value = col0;
var col1 = currentRow.find("td:eq(1)").html();
document.getElementById('vadovas').value = col1;
$('#vadovas').change();
$(document).ajaxStop(function() {
var col3 = currentRow.find("td:eq(3)").html();
document.getElementById('klinika').value = col3;
$(this).off("ajaxStop");
$('#klinika').change();
});
$(document).ajaxStop(function() {
var col5 = currentRow.find("td:eq(5)").html();
document.getElementById('produktas').value = col5;
$(this).off("ajaxStop");
$('#produktas').change();
});
});
});