Search snippets
Browse Code Answers
FAQ
Usage docs
Log In
Sign Up
Home
Javascript
how to add data-toggle and data-target using jquery
Michael
Programming language:
Javascript
2021-07-03 18:46:46
0
Q:
how to add data-toggle and data-target using jquery
Jason T Featheringham
Code:
Javascript
2021-06-28 16:45:50
$("button").on("click", function(){ $($(this).attr("data-target")).modal("show"); });
0
Tags
target
get
using
data
jquery
add
how
Related
jquery onclick toggle class next
how to add data modal target attribute in jquery
jquery wait for target to load
You should use jQuery to remove your target4 element from your page.
jquery toggle visibility
jquery toggle class
toggle jquery remove others
jquery toggle show hide
jquery toggle attribute disabled
jquery toggle text on click
jquery toggle checkbox
jquery modal on show + target button
jquery how to get form value event.target
how to target an element inside of a $(this) jquery
jquert toggleClass condition
toggle class jquery
New to Communities?
Join the community