.trigger('click'); isn't triggering
$('a#city-prompt').fancybox({
'width': 750
});
/*$('#c开发者_Go百科ity-prompt').trigger('click');*/
The code as is, works good, but when I trigger the click using jQuery it doesn't actually trigger anything
Try this:
$('#city-prompt').click();
Or:
$('a#city-prompt').fancybox({
'width': 750
}).click();
Have you tried this ? :
$('#city-prompt').click(function() {
//What you wanna do here
});
精彩评论