How to bind a properties object to an existing element?
<p>In jQuery you can create new elements and define properties on them in one step:</p>

<pre><code>$("&lt;div&gt;", {title: "Hey there!", text: "I'm a DIV!"});
</code></pre>

<p>This produces:</p>

<pre><code>&lt;div title="Hey there!"&gt;I'm a DIV!&lt;/div&gt;
</code></pre>

<p>Is there a way to do the same with an existing element? The following does not work:</p>

<pre><code>$("#theDiv", {title: "Hey there!", text: "I'm a DIV!"});
</code></pre>
