I'm trying to catch a div text content and put on another with javascript using innerHTML
usually it works but what happens is that the inseriro text in the new DIV does not get the CSS
I'll try to explain better
I have a div in my wordpress site with the wp_iso_block ID
and I have a div in my HTML footer with iso-block id
I'm doing as follows
document.getElementById ( 'iso-block') innerHTML = document.getElementById ('wp_iso_block') innerHTML..;
so I type in a post wordpress updated text footer in my HTML
It works normally but does not receive the CSS attributes that were given to the div id iso-block appears only text
here it is the best source explained.
My Javascript in HTML
document.getElementById('iso-block').innerHTML = document.getElementById('wp-iso-block').innerHTML;
My HTML in Wordpress post
<div id="wp-iso-block">
ISO 9001:2008 <span>certified company</span>
</div>