$('#regencies').on('change', function(e){
console.log(e);
var regencies_id = e.target.value;
$.get('/area/kec?regency_id=' + regencies_id,function(data) {
$.each(data, function(index, districtsObj){
$('#districts').append('<option value="'+ districtsObj.id +'">'+ districtsObj.name +'</option>');
})
});
});