i have the following code where i getJSON after i click on a select box. Sometimes it takes a long time and the users are clicking on the dropdown again during the server side processing.
Is there anyway to disable the dropdown during the server side call and reenabled it after the processing is complete.
here is my code
<script type="text/javascript">
$(document).ready(function() {
$('#userDropdown').change(function() {
if (this.selectedIndex != 0) {
var URL = "/Users/GetUserJson/" + this.value;
$.getJSON(URL, function(data) {
var userID = data.UserId;
var userColor = data.UserColor;
. . . .