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 21.08.2018 в 01:09
source

1 answer

4

You can use the function append()

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