jquery count select option s count code example Example: jquery count selected options var count = $("#mySelect :selected").length;