I can do it:
$('my-panel').innerHTML = '<p> New content </p>';
But if there is a way to do something like
$('my-panel').wholeHTML = "<div id='my-panel'><p> New Content</p></div>";
I can not find any way. If I cannot do something like this, I will have to reorganize a whole bunch of things that will take a lot of time.
source
share