jquery-typeahead icon indicating copy to clipboard operation
jquery-typeahead copied to clipboard

Set Default Value

Open johancruyff2019 opened this issue 8 years ago • 2 comments

How set default value (Selected item) and fire onClickAfter event

johancruyff2019 avatar Jan 10 '18 07:01 johancruyff2019

hey, setting the value is as easy as setting the <input /> value. If you wanna set the item to be sent on the submit you can always push it manually to your Typeahead instance

Typeahead['.js-typeahead-country_v1'].item = { key: 'abc', value: 'xyz', group: 'test' }

Closing, let me know if you have more questions

running-coder avatar Jul 30 '18 18:07 running-coder

setting value on <input /> sets the value but doesnt show cancel button. How to display that?

pawan-embibe avatar Jun 02 '19 11:06 pawan-embibe