単純なミスですが以下のようなコードだとエラーが表示されます。
$.ajax({ url: url_building_info, type : "POST", dataType: "json", data: { 'action': 'get_owner_memo', 'note': note_str }, success: function (res){ console.log(res); } });
この場合、jQuery(function($) { });が足りないので以下のように直す必要があります。
jQuery(function($) {
$.ajax({
url: url_building_info,
type : "POST",
dataType: "json",
data: {
'action': 'get_owner_memo',
'note': note_str
},
success: function (res){
console.log(res);
}
});
});


