У меня есть раскрывающийся список. Когда пользователь выбирает значение из раскрывающегося списка, он выполняет запрос для извлечения данных из базы данных и показывает результаты в переднем конце с помощью ajax. Это занимает немного времени, поэтому за это время я хочу показать индикатор выполнения. Я искал, и я нашел множество руководств по созданию индикаторов выполнения для загрузки, но мне это не понравилось. Может ли кто-нибудь дать мне полезное руководство?
Мой код ajax:
<script>
$(function() {
$("#client").on("change", function() {
var clientid=$("#client").val();
$.ajax({
type:"post",
url:"clientnetworkpricelist/yourfile.php",
data:"title="+clientid,
success:function(data){
$("#result").html(data);
}
});
});
});
</script>