0
How can I add button to div with JavaScript?
How can I add button to div with JavaScript?
3 odpowiedzi
0
(using jQuery)
$("div").click(function() {
// Code to be executed when the div is clicked
}
+ 1
button=$("<button>")
$("div").append(button);