I have code but any error.
Use of undefined constant id - assumed 'id'
$(document).on('click', '#UpdateForm', function () {
id = $(this).data('id');
name = $('#name').val();
address = $('#address').val();
country = $('#country').val();
$.post("{{ URL('peoples.'+id+'.update') }}", {name:name, address:address, country:country, id:id}, function (data){
//
});
});