CiviCRM Community Forums (archive)

*

News:

Have a question about CiviCRM?
Get it answered quickly at the new
CiviCRM Stack Exchange Q+A site

This forum was archived on 25 November 2017. Learn more.
How to get involved.
What to do if you think you've found a bug.



  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Developer Discussion (Moderator: Donald Lobo) »
  • JQuery not working
Pages: [1]

Author Topic: JQuery not working  (Read 687 times)

muenzer

  • I’m new here
  • *
  • Posts: 13
  • Karma: 1
JQuery not working
March 08, 2010, 05:12:49 pm
Hopefully someone can help here, I'm hitting a brick wall.  I'm trying to get basic JQuery commands working in Drupal CiviCRM 3.1.2 using a custom module.  I'm using drupal_add_js to add the following code:
Code: [Select]
jQuery(document).ready(function($) {
   $("a").click(function() {
     alert("Hello world!");
   });
 });

This is working everywhere on the site except when I'm in CiviCRM. I saw the thread from last year about JQuery breaking, but there didn't seem to be a resolution.  Any help would be appreciated.  Thanks.

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Developer Discussion (Moderator: Donald Lobo) »
  • JQuery not working

This forum was archived on 2017-11-26.