1$(document).ready(function(){
2 console.log($('#input1 option').size());
3 console.log($('#input1 option').length);
4});
5<script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/1.9.1/jquery.min.js"></script>
6<select data-attr="dropdown" id="input1">
7 <option value="Male" id="Male">Male</option>
8 <option value="Female" id="Female">Female</option>
9</select>