When typing into an autocomplete field it would be good if the search text typed into the text field, is emboldened in the autocomplete suggestions as follows:
So, if I type 'F', then the following might show:
NOTICE: The bold F's in the above.
I believe for sake of sensibility, only the first 'f' in this case should be emboldened in the autocomplete suggestions (note I would actually use around the F's in this case, with a css class, so people could style it as bold or a colour or whatever they want).
Then if I typed 'o' after the F, the text in the textfield would then be 'Fo', so the following suggestions would show:
NOTICE: The bold 'Fo' text in the above.
I got this half working with the current functionality, i.e. I can do a preg_replace() in the autocomplete callback, for the first occurrence of the search term, and add html bold tags around that search term in the suggestions. This works, however when I then select an autocomplete suggestion, then the textfield will be populated with the HTML also. e.g. <b>Fo</b>od rather than Food.
|#7||Styled Autocomplete Suggestions.png||31.07 KB||CatsFromStonehenge|