0

How can I add button to div with JavaScript?

How can I add button to div with JavaScript?

11th May 2018, 6:35 PM
Evil Dog
Evil Dog - avatar
3 odpowiedzi
0
(using jQuery) $("div").click(function() { // Code to be executed when the div is clicked }
11th May 2018, 8:16 PM
ReimarPB
ReimarPB - avatar
+ 1
button=$("<button>") $("div").append(button);
11th May 2018, 8:38 PM
᠌᠌Code X
᠌᠌Code X - avatar