',{value:"",text:"- Select District -"}));if(selectedCountryKey!=null&&selectedCountryKey!=''){$.ajax({type:'GET',contentType:'application/json',cache:false,dataType:'json',url:'/profile/get-districts',data:{key:selectedCountryKey},async:true,beforeSend:function(){},success:function(oData){var data=oData!=null?JSON.parse(oData):null;if(data!=null&&!jQuery.isEmptyObject(data)) {$.each(data,function(index,district){districtSelect.append($('',{value:district.Value,text:district.Text}));});if(key!='')$('#district option[value = '+key+']').attr("selected","selected");}},error:function(data){displayError('Error occurred!','Data processing error.');},complete:function(){},});}}