Answers for "how to add data-toggle and data-target using jquery"

0

how to add data-toggle and data-target using jquery

$("button").on("click", function(){
  $($(this).attr("data-target")).modal("show");
});
Posted by: Guest on June-08-2020
0

how to add data-toggle and data-target using jquery

$("button").on("click", function(){
  $($(this).attr("data-target")).remove("model");
});
Posted by: Guest on December-23-2020

Code answers related to "how to add data-toggle and data-target using jquery"

Code answers related to "Javascript"

Browse Popular Code Answers by Language