ethanjrt
ethanjrt

Reputation: 57

Lightbox jQuery not working

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

Answers (1)

Sridhar R
Sridhar R

Reputation: 20408

Try with 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

Related Questions