how append text and object at once with jquery?
<p>i have 2 text node and 1 jquery object, i want append them into DOM, when i do this:</p>

<pre><code>$('&lt;div&gt;')
.append("Ajax Failed, ")
.append($("&lt;span&gt;").addClass('counter').countDown({
    start:o.time,
         onEnd:function(){$.ajax(o.ajax);},
         onRetryEnd:function(){o.onFailed();}
 }))
 .append(" Seconds until resend request")
 .appendTo('#domElement').align({position:'absolute',parent:$('#domElement')});
</code></pre>

<p>it will prefect (Result: Ajax Failed, 6 Seconds until resend request), but i want append all this data at once, like:</p>

<pre><code> var counter = $("&lt;span&gt;").addClass('counter').countDown({
    start:o.time,
         onEnd:function(){$.ajax(o.ajax);},
         onRetryEnd:function(){o.onFailed();}
 });

 $('&lt;div&gt;').append('Ajax Failed, ' + counter + 'Seconds until resend request');
</code></pre>

<p>Result: Ajax Failed, [object object] Seconds until resend request.<br />
is possible do it at once and how?</p>
