Looking for a better way to handle an ajax script that pulls in post data on click
You ajax logic seems okay.. In order to solve a duplication problem you need to add a flag. Example: var isLoading = false; — Your click event is here — // Only let things to happen if there’s no ajax in the middle of process if( isLoading == false ) { // Set it to … Read more