jQuery: click() function doesn't work on the <a> element.. why ?

Posted by Patrick on Stack Overflow See other posts from Stack Overflow or by Patrick
Published on 2010-05-19T17:48:08Z Indexed on 2010/05/19 17:50 UTC
Read the original article Hit count: 106

Filed under:

hi,

I cannot trigger this click on this element

$(this).find('.views-field-field-cover-fid').find('a.imagecache-coverimage').click();

The jQuery path is correct. Indeed if I print it, it gives the correct a element:

console.log($(this).find('.views-field-field-cover-fid').find('a.imagecache-coverimage'));

But for some reason the function click() doesn't work on it. thanks

© Stack Overflow or respective owner

Related posts about jQuery