You should give your input a class="typeahead" !!!
Le dimanche 26 février 2012 12:02:05 UTC+1, Anuar Balgimbayev a écrit :
>
> hello guys!
> bootstrap's typeahead doesn't work in my hands.
>
> <script type="text/javascript"
> src="/bootstrap/js/bootstrap-typeahead.js"></script> (from git)
>
> <script type="text/javascript">
> var mas = ['Red', 'Green', 'Blue];
>
> $('.typeahead').typeahead({
> source: mas
> })
> </script>
>
> <td>
> <div>
> <input type="text" name="searchWord" style="width: 130px"
> placeholder="search" data-provide="typeahead" />
> </div>
> </td>
>
> what i'm doing wrong?
> thanks for any suggestions
>
>