Hi everybody,
I have an interesting situation, I need to trigger a live click , because simple click doesn't work .
this is what I have:
$('.text').trigger('click');
but i need something like this :
$('.text').trigger(live('click' ...));
or something to fix this problem
this is my code :
$(".Sets a.largeImage").fancybox({
'onComplete' : function(){
return errorimage(myurl);
}
});
function errorimage(url) {
$("#fancybox-img").live('click', function(){
$('.lightbox:first').trigger('click');
});
$('#fancybox-img').trigger('click');
}
The idea is that I wanna trigger $('.lightbox:first').trigger('click');
, but in live mode , because simple click doesn't work !
Thank you !!!!