I am new to Twitter's Bootstrap platform and I need to use bootstrap-typeahead.js to autocomplete, but I also need to get the value the user selected for typeahead.
This is my code:
<input type="text" class="span3" style="margin: 0 auto;" data-provide="typeahead" data- items="4" data-source='["Alabama","Alaska"]'>
How to add a listener to get the selected value from typeahead type and pass it to functions? For example, when I use ExtJs, I apply this structure:
listeners: { select: function(value){ ........ } }
How can I do something like this with typeahead?
jquery jquery-ui twitter-bootstrap
jack.cap.rooney Feb 29 '12 at 9:13 2012-02-29 09:13
source share