JQueryUI Autocomplete Search from Beginning

StuartProgramming Blog

I love the integrated Autocomplete in the JQueryUI but I have gotten requests to change the search behavior. The default behavior is to search for the target value anywhere in the string of the values supplied. This works natively by using something like the following code: var matcher = new RegExp( term.replace(/[-[\]{}()*+?.,\\^$|#\s]/g, "\\$&"), "i" ); return $.grep( array, function(value) { … Read More

StuartJQueryUI Autocomplete Search from Beginning