AutoComplete AutoFocus Select 1st suggestion Select 1st Dropdown

AutoComplete AutoFocus Select 1st suggestion Select 1st Dropdown

aungkoheinaungkohein Posts: 38Questions: 5Answers: 0

Hi @allan / @colin

In inline Editor, I managed to use autocomplete. It shows suggestion when keys are entered. My user would like to press on TAB and also click out of the cell, to submit the top suggestion (1st row autocomplete). Even if he entered e.g "A" and sugguestion shows "Apple, Ape, etc", Apple will be autofilled and submitted into database.

I have found autocomplete with autofocus solutions but could not make it work with Datatables.

Something like this for AutoComplete:
https://codepen.io/anon/pen/rVJyRO

http://api.jqueryui.com/autocomplete/#option-autoFocus

What syntax should I use?

Replies

This discussion has been closed.