showing results for - "get select option count using jquery"
Emma
09 Sep 2016
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>
Edoardo
04 Jun 2018
1var count = $("#mySelect :selected").length;
queries leading to this page
select option jquery counthow to get count value from select option in jqueryjquery count options in selectjquery select list option countcount options in select jquerycount element in combobox jqjqury code to count number of list itms in a dropdownjquery get options count from select pyquery total selected itemscheck how many option in select tag using jqueryjquery counting how many options has a selectget select option numberjs count options in selectcounting number of option in select jquerycount select option jqueryjquery count select itemsjquery get select option counthtml select count optionsselect on click get options countjquery select option countjquery count option in selectjquery selectric item box countcount selected options jqueryjquery get count of selected checkboxget number of option in a select jqueryjquery code to count list of options in a dopdownhow to get options count in a select using jsjquery get count selectjquery count select option s countget select option count using jqueryselect this option countcount select value jqueryjquery count selected elements selectcheck number of options in select jqueryjquery select get option countcount slect options in jqueryjquery get number of select optionshow to count options in select jqueryjquery get selected option countget option count select jqueryjquery select count selected optionsjquery count selected optionsget select item count jqueryjq select countnumber of selected option jqueryjquery count selected elementsjquery get count of options in selectcount number of value selected in multiselect dropdown jqueryjquery give option to show number of rowsget dropdown select count jqueryjquery check select number of optionsselect option count in jquerycount of selected options jqget options count select jquerycount selected dropdown in jqueryselect option countselect selct boc and count qtyget number of elments selected option select2 jquerycount number of options in select box javascripthow to get count of selected checkbox in jquerycount select options jqueryget length of option jqueryselect option count jqueryget count of option in select jqueryjquery each select count optionscount select jqueryjquery count total options in selectget selected option count jquerycount option in select jqueryjquery select box option countjquery count select optionsselect tag count 28 2a 29jquery selected countcount options select jqueryhow to count number of items in muti select picklist using jqueryjquery get number of options in selectjquery get option countjavascript count optionsjquery count selected elements comboboxselect same number options jqueryget select list countcount number of options in select jqueryjquery count selectjquery select list countjquery check select option countget select option count using jquery