I am trying to implement auto complete via jquery auto complete plugin. I have used the script from here jQuery UI autocomplete. I currently have a field called Search Infections where I am storing the Description .
<tr>
<td>Search Infection</td>
<td>
<input id="tags" type="text" size="80" /></td>
</tr>
自动完成此操作正常 。
我还有一个叫做“短码”的字段, 我想存储“ 强” 代码 < / 强” 。
<tr>
<td>Short Code</td>
<td>
<input id="" type="text" size="15" /></td>
</tr>
如果用户在感染区搜索《描述》,我是否可以将代码存储在短代码字段中?
请救救我
CODE and DESCRIPTION list.
---------------------------------------------------------
Code Description
---------------------------------------------------------
ID01 Actinomycosis
ID02 Aspergillosis
ID03 Bacteraemia / blood stream infection/ Septicaemia
ID04 Bacterial meningitis
ID05 Bronchiectasis
ID06 Candidiasis
ID07 Carotid patch infection
ID08 Cellulitis
ID09 Cerebral abscess
ID10 Cholangitis
---------------------------------------------------------------------
=====================================================================
<script>
$(function() {
var availableTags = [
"Actinomycosis",
"Aspergillosis",
"Bacteraemia / blood stream infection/ Septicaemia",
"Bacterial meningitis",
"Bronchiectasis",
"Candidiasis",
"Carotid patch infection",
"Cellulitis",
"Cerebral abscess",
"Cholangitis"
];
$( "#tags" ).autocomplete({
source: availableTags
});
});
</script>