Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

refresh modal on button click jquery

function openmodal(id){
    var id=id;
    //No need to hide here
    $('#item_modal').modal('show');
    $("#target_title").text(id);
}

$("#item_modal").on("shown.bs.modal",function(){
   //will be executed everytime #item_modal is shown
   $(this).hide().show(); //hide first and then show here
});
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #refresh #modal #button #click #jquery
ADD COMMENT
Topic
Name
8+2 =