quote:
The setTimeout(...,0) just means execute immediately. In this form, everything works fine.
Not putting it in a SetTimeout would do exactly the same thing?
And I've not seen the other thread, but try:
code:
setTimeout(eval("alert(elem('total_cost').innerText)"),0);
or
code:
setTimeout(new function() {alert(elem('total_cost').innerText)},0);