check number of options in select jquery code example Example: jquery count selected options var count = $("#mySelect :selected").length;