2012-03-27 76 views

回答

0

嘗試使用這個

在你的腳本

$.ajax({ 
    type: "POST", 
    url: test.php, 
    cache: false, 
    success: function(html){ 
    $('select').append(html); 
    } 
}); 

test.php的

foreach($result as $row){ 

echo '<option value="'.$row->key.'">'.$row->value.'</option>'; 

} 
相關問題