I have a div
<div id="test" class="test">From 0 to 0</div>
Then there is a function that replace the content of the div
function divChange(aArg)
{
var sText = "From" + aArg[0] + "to" + aArg[1];
$("#test").html(sText);
}
And I have no control over this function nor the html. Can I somehow get the text of the div after it has been changed using javascript (I run greasemonkey over the site). Note that the content of the div can be different or the same as before changing.
Update: Sorry I forgot to mention something. First I start a searching, then there will be a asynchronous function running, after it get the all data (the time depend on the database it use) then it will call to this one. So what I want is getting the data after the div is changed not right away after searching or else the result won't be correct.
Simple logic: 1. I start calling a function I don't have control over 2. It will run in an unknown time. 3. After it finishes, it will call a function to change a div's content. 4. I want to capture the content at this moment.