84
rated 0 times
[
86]
[
2]
/ answers: 1 / hits: 19641
/ 14 Years ago, wed, june 2, 2010, 12:00:00
I am trying to get the id of the clicked/shown element in fancybox. I have tried both this.id and this.attr(id) - but none of them works.
$(a.lightbox_image).fancybox({
'transitionIn': 'elastic',
'transitionOut': 'elastic',
'speedIn': 600,
'speedOut': 200,
'content': 'Id of element clicked'+this.attr(id)
});
Any suggestions?
More From » jquery