I have the following bit of code, simply:
$(function() { $('a.add-photos-link').live('click', function(e) { $(this).colorbox({ overlayClose: false, onComplete: function() { $('#add_photos').submit(function(e) {
However, it seems that this only works after clicking the TWICE link once. These links are dynamically added to the page ( a.add-photos-link ).
Why is this happening and what can I do to fix it so that it works after the first click?
jquery click live
neezer
source share