Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Property/Method not supported error. #2169

Closed
sskokku opened this issue Feb 22, 2012 · 2 comments
Closed

Property/Method not supported error. #2169

sskokku opened this issue Feb 22, 2012 · 2 comments
Labels

Comments

@sskokku
Copy link

sskokku commented Feb 22, 2012

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.

@MMRandy
Copy link

MMRandy commented Feb 23, 2012

Hello...brand new here, looks pretty cool. Have you tried to upgrade your jQuery version to 1.7? I believe the 'on' event was added to the API in version 1.7:

http://blog.jquery.com/2011/11/03/jquery-1-7-released/

Hope that helps,
Randy

@fat
Copy link
Member

fat commented Feb 24, 2012

Yep - bootstrap relies on 1.7 - thanks!

@fat fat closed this as completed Feb 24, 2012
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants