Bootstrap Modal not opening after first click ?


Bootstrap Modal not opening after first click ?

 Modal opens for the first time , but if I click it second time to open on the same image or on others, Modal function not working. $(".upload-test-container").find('img').each(function(idx){ $(this).attr("id","resImageID"+idx.toString()); $(this).css('cursor','pointer'); $(this).on("click",function(){ console.log("clicked "+$(this).attr('id')); get(); ImageClickedId = $(this).attr('id'); }); }); function get(){ $('.upload').modal('show'); } 

Submitted July 11, 2017 at 07:39PM by ramintagizade
via reddit http://ift.tt/2sLPKyC

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s