$(document).on('click','#edit',function(){
var id = $(this).attr('value');
$.ajax({
type:'post',
url:"http://localhost/CI-Ajaxold/register/show/"+id,
}).done(function(data){
console.log(data);
});
});
RESPONSE IN CONSOLE => [{"id":"23","name":"fhfhfh",}]