Just posting the codes wouldn't help. At least with some descriptions?
What is the id of the input?
The argument to pass into the jquery selector is the concatenation of # + element.id
For example: it should be $('#desc').val();
<input type="text" name="uraian" id="desc" class="form-control">
Also, I don't know how your API works.
Assuming the data return from the API is
{
"classification": {
"id":1,
"kode":"B-32131",
"uraian": "Sample description"
}
}
Your script should be:
success: function(data){
// alert('ok');
$('#uraian').val(data.uraian);
},
Please remind that