var id = 'test';
var dom = $('#loader').clone().load("Views/chatBox.html");
dom.find('span.bn').text(id);
in chatBox.html,there is :
...
<span class="bn">AAA</span>
...
I want to replace "AAA" with "test",but failed(dom.find can't fetch it),which mean it's not available instantly.
How to do it the right way?