I am using autocomplete functionality for my form. i have used below jquery script to implement the autocomplete function.
<script>
$( "#autocomplete" ).autocomplete({
source: [ "c++", "java", "php", "coldfusion", "javascript", "asp", "ruby" ]
});
</script>
The o/p which comes through above code is its fetching all the words related to the letter which we are entering in the input box. For example: If i am typing "C" then its fetching all the words which contains C. But i would like to have the words starting with C alone.
HTML Part is:
<label for="tags">Tags: </label>
<input id="tags" />
Please any one help on this....Thanks