I am trying to make the jQuery UI Autocomplete search only the first few letters of my strings. I thought I could do a key/ value thing with jQuery UI, but I am not sure if that applies.
I have the following string:
AGREE Agreement by and between BLANK, in BLANK, of the county records.
Only AGREE
should be searched, not the rest of the string. AGREE
is the text-code that the user will search for.
Here is my simple code:
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
});
Only the first words AGREE
and CONDO
should be searched, not the rest of the strings. Is this possible/ feasible?