In your first you have an error. You should put $ in front of
('.carousel').carousel(), like this: $('.carousel').carousel();
in jQuery "$" is an alias for "jQuery", these two lines will do the same
thing:
1) $('.carousel').carousel();
2) jQuery('.carousel').carousel();
Usually in jQuery you wi
Ok! We're making progress! Adding that line made more stuff work. Now -
just one last quirk:
// DOES NOT WORK. Mozilla says: carousel is not a function
$(document).ready(function(){
('.carousel').carousel();
});
// This works -
$(document).ready(function(){
jQuery('.carousel')
In order for carousel to work you need to include bootstrap javascript
files.
In your application.js file put
//= require bootstrap
On Wednesday, January 23, 2013 7:18:55 AM UTC+2, xsc...@gmail.com wrote:
>
> I added bootstrap-sass to my Gemfile, did bundle install, added "@import
> bootstrap"
3 matches
Mail list logo