jQuery Click event not being triggered in Firefox?

jQuery Click event not being triggered in Firefox?

Hi all,

I'm new to jQuery, and am using the following code to capture click on all links with the specific class.

  1. $(document).ready(function(){
  2. $('a.candidate').click(function(event){
  3. thumbnail_clicked(event);
  4. });
  5. });
  6.  
Using Firebug, I can see that the document read method is being called, but it appears that the click event method is never called. It's not called during the initial document ready call (I'm not sure if it's supposed to be) and it's not being called when I do click on a link with that class name.

Now, this same code works in both IE and Chrome. That class name does exist, and there are a lot of links using it on this page I'm testing with.

Is anyone aware of compatibility issues regarding this, or some sort of alternative more acceptable way of doing this? This seems like a very basic thing, so I'm surprised it's not "just working."

Thanks in advance,

Ryan