JSFiddle - React, Tailwind, and code Playground
by Juri Rudi
HTML
<p>- Creazione di Elementi:</p>
<div id="test_1"></div>
<p>- Selezione di Elementi:</p>
<div id="test_2">Contenuto nel DOM (clicca)</div>
JavaScript
$("<p><strong>Nuovo</strong> paragrafo</p>").appendTo("div#test_1");
$("#test_2").click(function(){
var contenuto = $(this).text();
alert(contenuto);
})