how to add data-toggle and data-target using jquery code example
Example 1: how to add data-toggle and data-target using jquery
$("button").on("click", function(){
$($(this).attr("data-target")).modal("show");
});
Example 2: how to add data-toggle and data-target using jquery
$("button").on("click", function(){
$($(this).attr("data-target")).remove("model");
});