Get number of <select> items inside change() function
<p>I have the following js code:</p>

<pre><code>$("#mySelector").change(function(){
  console.log($(this).length);
});
</code></pre>

<p>I know this is wrong code to get the number of items in selector. But how should I get this number in correct way?</p>

<p>P.S.
In normal way I should use <code>$("#mySelector option").length</code> to get this number. But how to add <code>option</code> to <code>$(this)</code> operator?</p>
