I have an ajax script. I'd like to make a combobox from the ajax response. this is my ajax script:
$.ajax({
type : "POST",
url : "<?php echo site_url('con_atk/get_harga'); ?>",
cache: false,
dataType : "json",
data : { y : id },
success : function(outputs){
$.each(outputs, function(index, value) {
//alert(value.harga);
//this is the data that is used for the combobox
});
}
});
var col_hrg = "<td style='text-align:right; vertical-align:middle'>"+ /*this is where the combo box should be*/ +"</td>";
is it posibble? Thank you for your help :)
Aucun commentaire:
Enregistrer un commentaire