请告诉我为什么不能使用此选择更改select的禁用属性
如您所见,在ajax成功的同时我得到了这个html,但是我将链接调用放到了on click函数上
$( ".kredits_area" ).on( "click", ".bestehende_edit", function( event ) {
event.preventDefault();
var block=$( this ).closest('.bestehende_data');
console.log(block);
console.log(block.find('.select_bestehende'))
var darlehencenehmer = block.find('.select_bestehende');
console.log(darlehencenehmer);
darlehencenehmer.prop('disabled', false);
$.ajax({
method: 'POST',
dataType: 'json',
async: true,
url: "/" + "<?echo $admin_type?>" + "/get_kredit_history",
data: {
id: << ? echo $credit - > id ? >
},
headers: {
'X-CSRF-TOKEN': $('meta[name="csrf-token"]').attr('content')
},
success: function(data) {
$('.bestehende').css('display', 'none');
$.each(data, function(key, value) {
console.log(value.Darlehencenehmer)
$('.kredits_area').append(
'<div class="bestehende_data" id="bestehende_data_' + value.id + '" style="margin-left:10px;">' +
'<div class="bestehende_header"><h3 style="display:inline-block" >Kredit ' + (key + 1) + '</h3>' +
'<a class="btn btn-default bestehende_edit" style="float:right;margin-top:-15px;color:blue;display:inline-block" href="javascript:void(0);"><i class="fa fa-pencil"></i> </a>' +
'<a class="btn btn-default bestehende_delete" style="float:right;margin-top:-15px;color:red;display:inline-block" href="javascript:void(0);"><i class="fa fa-trash-o"></i> </a>' +
'</div>' +