Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

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

$("button").on("click", function(){
  $($(this).attr("data-target")).modal("show");
});
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #add #jquery
ADD COMMENT
Topic
Name
8+7 =