Dropdown options can't access with jquery selector?
<p>I have a drop down in my webpage.It's a aspx page.But i am try to access the drop down from JavaScript.here is my code.
This code is working.</p>

<pre><code>var a = document.getElementById('myDropdown');
alert(a.options.length);
</code></pre>

<p>This code is not working</p>

<pre><code>var a = $('#myDropdown');
alert(a.options.length);
</code></pre>

<p>i am getting the following error.</p>

<pre><code>TypeError: Cannot read property 'length' of undefined
</code></pre>

<p>Any one have any idea.</p>
