I have a 3rd party script that is importing a menu and I cannot edit this 3rd party script. It generates code like this:
<div id="wmenu-updated" style="display: block;">
<small>Menu updated</small>
<span innerhtml="19 hours ago"></span>
</div>
It should take 19 hours ago
and display that as text inside the span but for whatever reason it doesn't work and the makers of the script are little help in fixing the error.
Is there a way, using jQuery, that once the page loads I can take the innerhtml
and spit it out as text inside that span?
$( document ).ready
to$(window).load
because the 3rd party script wasn't loaded before the other script ran. – Cabbala