get id of first div in page loaded via ajax
<p>I'm using $.get function for loading partial view:</p>

<pre><code>$.get('/desk/nextstep', function (data) {
            var ids = $(data).filter(':first').attr('id');
            alert(ids);                
});
</code></pre>

<p>I want to get <code>id</code> of first(root) div, but this code not works:</p>

<pre><code>var ids = $(data).filter(':first').attr('id');
</code></pre>

<p>I get <code>undefined</code> alert message. How to solve it?<br>
Thanks.</p>

<p><strong>UPDATE:</strong>
In the <code>data</code>  html code:</p>

<pre><code>&lt;div id="step1" class="scroll-pane"&gt;
    &lt;div class="scroll_cont"&gt;
     //other content
    &lt;/div&gt;
&lt;/div&gt;
</code></pre>
