1

I'm trying to show a popup by append a balise like this :

$('<a id="dz-jcrop" class="dz-jcrop" href="#myModal" data-toggle="modal" >Crop image</a>').appendTo('.dz-image-preview');

The popup is showned but before the browse window to find picture is opened like this :

enter image description here

I try to stop propagation to open popup without show the browse picture window .. but it is also showned :

$(document).on('click', '.dz-jcrop', function(event){
    event.stopPropagation();
    console.log('me');
    return false;
});
AiD
  • 977
  • 3
  • 15
  • 41
  • possible duplicate of [Stop propagation to appended element](http://stackoverflow.com/questions/30981270/stop-propagation-to-appended-element) – Keval Bhatt Jun 23 '15 at 11:07

0 Answers0