otp
This commit is contained in:
@@ -189,20 +189,20 @@
|
||||
|
||||
$.ajax({
|
||||
method:'GET',
|
||||
url:'http://localhost:8000/api/poskod/'+poskod,
|
||||
url:api_url+'/api/poskod/'+poskod,
|
||||
success:function(poskod_detail){
|
||||
// console.log(poskod_detail);
|
||||
var koddaerah = poskod_detail['koddaerah'];
|
||||
var kodnegeri = poskod_detail['kodnegeri'];
|
||||
$.ajax({
|
||||
url:'http://localhost:8000/api/negeri/'+kodnegeri,
|
||||
url:api_url+'/api/negeri/'+kodnegeri,
|
||||
method:'GET',
|
||||
success:function(negeri){
|
||||
$('#negeri').val(negeri['negeri']);
|
||||
}
|
||||
});
|
||||
$.ajax({
|
||||
url:'http://localhost:8000/api/daerah/'+koddaerah,
|
||||
url:api_url+'/api/daerah/'+koddaerah,
|
||||
method:'GET',
|
||||
success:function(daerah){
|
||||
$('#daerah').val(daerah['namadaerah']);
|
||||
|
||||
Reference in New Issue
Block a user