jQuery UI オートコンプリートで文字列の最初の数文字のみを検索しようとしています。jQuery UI でキー/値のことをできると思っていましたが、それが当てはまるかどうかはわかりません。
次の文字列があります。
AGREE Agreement by and between BLANK, in BLANK, of the county records.
文字列の残りの部分ではなく、のみAGREE
を検索する必要があります。 AGREE
ユーザーが検索するテキストコードです。
これが私の簡単なコードです:
var availableTags = [
"AGREE Agreement by and between BLANK, in BLANK, of the county records.",
"CONDO Covenants, conditions, restrictions, reservations, terms, provisions, easements, liens for assessments, options, powers of attorney and limitations on title as set forth in the Ohio Revised Code Chapter 5311, or as set forth in the Declaration of Condominium ownership and Bylaws as recorded in BLANK, as amended, plat BLANK, of the county records."
];
$( "#tags" ).autocomplete({
source: availableTags
});
残りの文字列ではなく、最初の単語AGREE
とのみCONDO
を検索する必要があります。これは可能/実行可能ですか?