Run PHP with JQuery Progress Bar

Run PHP with JQuery Progress Bar

Hi,

As an example, I have customers in my database. I want to check the numbers of the customers using check_total_number.php then after getting the value I want to run update_customer_data.php but with showing a progress bar for that number of customers.

How can I do that using $.ajax?

Thanks,