Reputation: 57
It won't let me answer my own question, but the problem has been solved. It was a brackets issue facepalm
Upvotes: 0
Views: 80
Reputation: 20408
Try with On()
On()
$('body').on('click', '#lightbox', function(){ $('#lightbox').hide(); }); <div id="trigger"> <a class="lightbox_trigger" href="media/trigger_small.png"> </a> </div>
DEMO
Upvotes: 1