jqury code to count number of list itms in a dropdown code example Example: jquery count selected options var count = $("#mySelect :selected").length;