기존의 id, label, value를 사용하지 않고도 JQuery 자동 완성 기능을 사용할 수 있습니까?레이블, 값, id를 사용하지 않고 JQuery 자동 완성
예를 들어, 내가 사용하지 않으 : 오히려
[ { "id": "Botaurus stellaris", "label": "Great Bittern", "value": "Great Bittern" },
{ "id": "Asio flammeus", "label": "Short-eared Owl", "value": "Short-eared Owl" }]
하지만을 : 그래서
[ { "my_id": "Botaurus stellaris", "first_name": "Great Bittern", "last_name": "Great Bittern" },
{ "my_id": "Asio flammeus", "first_name": "Short-eared Owl", "last_name": "Short-eared Owl" }]
같은, 일반적으로 id,value,label
무엇이 JQuery autocomplete
, 나는 그것이 jQuery를 my_id, first_name, last_name
을 가지고 만들 수 있습니다 같은 자동 완성 치료 id,label,value
?
데이터 소스에서 오는 데이터 키를 수정하지 않고 JQuery 자동 완성에 표시하려는 경우 유용 할 수 있습니다.