我正在使用http://jqueryui.com/demos/autocomplete/#default
我的数据
[{"icd_ID":"2","icd_code":"A00","icd_desc":"Cholera","icd_yn":"N"},
{"icd_ID":"3","icd_code":"A00.0","icd_desc":"Cholera due to Vibrio cholerae 01, biovar cholere","icd_yn":"Y"},
{"icd_ID":"4","icd_code":"A00.1","icd_desc":"Cholera due to Vibrio cholerae 01, biovar eltor","icd_yn":"Y"},
{"icd_ID":"5","icd_code":"A00.9","icd_desc":"Cholera, unspecified","icd_yn":"Y"}
]
对于“icd_desc”自动建议值,我想获得“icd_code”。
jsfiddle 链接: http: //jsfiddle.net/ajaypatel_aj/P Rnc9/