Put html on a div with jQuery

0

Is there anything in jQuery to do the following?

document.getElementById('ejemplo').innerHTML+= '<div> HTML de ejemplo </div>'
    
asked by Emiliano Pamont 20.08.2018 в 23:09
source

1 answer

4

You can use the function append()

$("#ejemplo").append("<div> HTML de ejemplo </div>");
    
answered by 20.08.2018 / 23:11
source