2012-03-27 80 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>'; 

} 
相关问题