This is my script. Can you all tell me how and where to define maximum results code and how to make it search from the beginning? It got minLength: 2. So now if I type 01 it
shows results like – 02301, 20165, 01674 ………. so on ..I wanted the search results to be like 01001, 01002,01003 …… so on on. like in Acc order.
I also wonder how to use xml file to extract the data.
<script>
$(document).ready(function() {
$("input#autocomplete").autocomplete({
source: [
"(BWI)BALTMORE-WASHINGTON ARPT ,MARYLAND",
"11-MILE CANYON RES ,COLORADO",
"4 BEARS LODGE ,NORTH DAKOTA",
"Aaron ,KENTUCKY",
"AASU ,AMERICAN",
"ABANAKA ,OHIO",
"ABARR ,COLORADO",
"ABBA ,GEORGIA",
], minLength: 2,
});
});
</script>
I hope you can help me. Please I really need your help.
Thanks
if you want the search results to be like 01001, 01002,01003 …… you should use the ‘startWith’ function