get number of elments selected option select2 jquery code example Example: jquery count selected options var count = $("#mySelect :selected").length;