jQuery( function ( $ ) {
$ ('.acf-field-64647e4980e03').click( function(){
var input = $(this);
var post_id = $('#post_ID').val();
$.ajax({
type : 'POST',
dataType: 'json', // add this
url : ajaxurl,
data:{
action:'my_acf_update2',
post_id: post_id
},
success: function(json) { // change this
for (var key in json) {
var field = acf.getField(key);
field.val(json[key]);
}
}
});
} );
} );