How to create parent class to element id using jQuery?
<p>From</p>

<pre><code>&lt;div id="ball"&gt;
&lt;/div&gt;
</code></pre>

<p>Create</p>

<pre><code>&lt;div class="grass"&gt;
    &lt;div id="ball"&gt;
    &lt;/div&gt;
&lt;/div&gt;
</code></pre>

<p>I have tried using jQuery but I was not able to make it work.</p>
