Assign Div id to variable jQuery
<p>I am trying to assign div id to a variable in jQuery .</p>

<pre><code> var tbdiv = null;
    tbdiv= $('#mydiv');
</code></pre>

<p>But this is throwing error in my jQuery file as  ' Invalid argument '.</p>

<p>I am trying to do the following code which is in javascript</p>

<pre><code>var tbdiv =document.getElementById('mydiv');
</code></pre>
