twitter/bootstrap — Issue #2169: Property/Method not supported error.
Author: sskokku
Created: 2012-02-22 16:40:42+00:00
State: open

I am getting an error when i included Bootstrap in my project that says " Object doesn't support property or method 'on' "

----START-----
$('body').on('click.modal.data-api', '[data-toggle="modal"]', function ( e ) {
var $this = $(this), href
, $target = $($this.attr('data-target') || (href = $this.attr('href')) && href.replace(/.*(?=#[^\s]+$)/, '')) //strip for ie7
, option = $target.data('modal') ? 'toggle' : $.extend({}, $target.data(), $this.data())
e.preventDefault()
$target.modal(option)
})
---- END-----

I am using bootstrap with 960.gs and jQuery 1.6 and jQuery UI.