I'm still with the error

   1. Uncaught TypeError: Object #<Object> has no method 'on'
   
bootstrap-typeahead.js:277<http://localhost/adreactor-reports/assets/javascript/bootstrap-typeahead.js>
      1. (anonymous
function)bootstrap-typeahead.js:277<http://localhost/adreactor-reports/assets/javascript/bootstrap-typeahead.js>
      2. 
c.extend.readyjquery.js:26<http://localhost/adreactor-reports/assets/javascript/jquery.js>
      3. L
      
jquery.js:33<http://localhost/adreactor-reports/assets/javascript/jquery.js>



i dont know what is happening!

On Wed, Jun 27, 2012 at 10:21 PM, Sherbrow <[email protected]> wrote:

> Hello,
>
> You need jQuery 1.7 (or a later version).
> http://api.jquery.com/on/ see the 'version added: 1.7'.
>
>
> On Wednesday, June 27, 2012 2:44:19 PM UTC+2, Daniele wrote:
>>
>> Hey people!
>>
>> Im starting to work with CodeIgniter and i need to code one
>> autosuggestion box with bootstrap typeahead and it's not working inside the
>> project even with a simple example.
>>
>> The example is this one:
>>
>> $('#ooo').typeahead({number: 3 , source: ['youtube', 'google', 'yahoo']});
>>
>> <input type="text" id="ooo" data-provide="typeahead"/>
>>
>> And the error:
>>
>> $(function () {
>> $('body').on('focus.typeahead.**data-api', '[data-provide="typeahead"]',
>> function (e) {
>>
>> ---> Uncaught TypeError: Object #<Object> has no method 'on'
>>
>>
>> Someone faced the same problem or at least someone know what is happening?
>>
>

Reply via email to