私は持っている
jQuery(document).ready(function(){
$('#location_search').autocomplete(
{
source:'suggest_location.php',
minLength:1});
});
JSON データを返します。
[
{
"label" : "EB\u0130 Konukevi",
"value" : "EB\u0130 Konukevi, 32.791, 39.888",
"hor" : "32.791",
"ver" : "39.888"
},
{
"label" : "EB\u0130 Gretwes",
"value" : "EB\u0130 Gretwes, 32.491, 39.488",
"hor" : "32.491",
"ver" : "39.488"
}
]
lacations の 1 つを選択すると、location_search フィールドに入力されます。
場所が選択されたときに、非表示のテキスト入力 (id の ver と hor) に hor と ver を入力するにはどうすればよいですか?