Chain this jquery expression
<p>Is there a way to chain this jQuery expression or improve it? All i really want to do is change "my text" to "new text".</p>

<p>HTML:</p>

<pre><code>&lt;div id="myDiv"&gt;
   my text
  &lt;span&gt;button 1&lt;/span&gt;
  &lt;span&gt;button 2&lt;/span&gt;
&lt;/div&gt;
</code></pre>

<p>Javascript:</p>

<pre><code>var element = $("#myDiv");
var buttons = element.children().detach();
element.text("new Text");
element.append(buttons);
</code></pre>
