When using the jQuery UI autocomplete combobox, I would thought there would be an option to force only a valid key entry based on the list. Is there any way to not allow invalid keys, so you can only enter valid items in the list? Also, is there a way to set a default value of the combobox?
If my list has (C#, Java, Python)
I can start typing “abcds . .” and it lets me type it in. I want only valid entries to be allowed.
UPDATED 2
Demo: http://so.lucafilosofi.com/can-you-restrict-entering-invalid-keystrokes-with-jquery-ui-autocomplete-combobox
Core JavaScript code:
NOTE:
Let me know!