Use the JqueryUpdate, jquery v1.7, it adds a link to the file within the header, perfect.

However hen I use a simple javascript does not work.

Example in a block:
$ (document) .ready (function () {
$ ("a"). click (function (event) {
$ ("# block-views") addClass ("display-block.");
});
});

Or .info:
scripts [] = js / script.js

If we apply the same link jquery and put together to block the script works. Anyone know why this happens?

Comments

markhalliwell’s picture

Assigned: williamgomes » Unassigned
Status: Active » Closed (won't fix)

Ambiguous jQuery questions and issues that do not pertain to the actual module will be marked as “Closed (won’t fix)". Please try looking or asking here: http://drupal.stackexchange.com/search?q=jquery_update