Unable to locate the parent Id properly using the Parent method in JQuery
<p>I have a GridView control embeeded inside a div as under</p>

<pre><code>&lt;div id="parentDiv"&gt;
        Hello how r u
        &lt;p&gt;
            &lt;asp:GridView ID="grdView" runat="server"&gt;
            &lt;/asp:GridView&gt;
        &lt;/p&gt;
    &lt;/div&gt;
</code></pre>

<p>What I am trying to achieve is that, to find the Parent element of the grid (which is the "parentDiv") and set the background color to green.My code(does not work)</p>

<pre><code>$(document).ready(function() {
    var parentElement = $('#grdView').parent("div");
    parentElement.css("background-color", "#ffaaaa");
});​
</code></pre>
