2012-03-09 76 views

回答

2

您可以在select功能類似添加:

$("#state").val(ui.item.state); 

這是填好的小提琴:在

select: function(event, ui){} 

http://jsfiddle.net/sLr7N/5/

1

你有分配使用他們的id輸入值,如下所示:

select: function(event, ui) { 
       $('#state').val(ui.item.state); 
       $('#country').val(ui.item.country); 
} 
+0

Aahhh!太棒了,這很有用!非常感謝:D – iamchriswick 2012-03-09 14:08:06

相關問題