How to use jquery API over html string
<p>context: I have an ajax request which return data structure with an html key.</p>

<p>I would like to wrap this data with a jQuery object to be able to use API like width / height and modify the data before adding it to the DOM.</p>

<pre><code>&gt; $('&lt;div width="220" height="200"&gt;&lt;/div&gt;').width()
0
</code></pre>

<p>So how could I do to get 220 and then modify it ?</p>

<p>I'm using jquery 1.7.2</p>

<p>Edit:</p>

<p>I'm not from the 90's because I use the wrong tag in my example. My need is to change width and height of an iframe for responsive:</p>

<pre><code>&gt; $('&lt;iframe width="220" height="200"&gt;&lt;/iframe&gt;').width()
0
</code></pre>
