Simple button, How do I disable the button immediately? my api call is not async, but I dont want user submitting multiple requests?
Example? Search
function GetClient() {
$("#btnSubmitCode").prop("disabled",true);
//Ajax call here
//takes a few seconds to go and get info from api
}