Scroll
Portfolio
Forums
Hello, I'm trying to create a portfolio like yours in lesson 6, but I've hit a roadblock with attaching the JS. No matter how I tried, it doesn't attach to the
script.js, I wrote
(function ($, Drupal, window, document, undefined) {
$(document).ready(function() {
$('#widget_pager_bottom_nashi_raboty_slide-block').jcarousel();
});
})(jQuery, Drupal, this, this.document);
I carefully studied lesson 6 and in the
site.info file, I added
scripts[] = js/jquery.jcarousel.min.js
scripts[] = js/script.js
, so I did it just like in the lesson, but the JS still won't attach. Can you please advise what else might be the problem?