Counting the number of options tag in the Select Dom element in JQuery
<p>How to count the number of options in a select Dom Element using JQuery.</p>

<pre><code>   &lt;select data-attr="dropdown" id="input1"&gt;
   &lt;option value="Male" id="Male"&gt;Male&lt;/option&gt;
   &lt;option value="Female" id="Female"&gt;Female&lt;/option&gt;
   &lt;/select&gt;
</code></pre>

<p>How to find the number of options tag in the select DOm element since with that i want to open the Settings panel with that number of input fields with the corresponding option value from the dropdown box in it and to change it again in the Preview panel.Where the above dropdown box is in my preview panel which is generated by JQuery.</p>
