I'm having a problem trying to transfer content from% ed to DIV
with Jquery.
The code I'm using is this one:
function setData(id) {
id.className = "input editavel esse";
var valor = $(".esse").text()
$(".esse").next("td").children("textarea").text("\""+valor + "\"")
$(".esse").removeClass("esse")
}
This function is called in textarea
of onchange
works perfectly when I change content of div
when typing, but when content comes dynamically from the database (HTML table) the function replaces div
with content instead of putting the same inside it.