If we want to return total number of dropdown value Then code will be in jquery is
var len = $(‘#selectboxID option’).length; alert(len);
If we want to return total number of selected dropdown value Then code will be in jquery is
var len = $(‘#selectboxID option:selected’).length; alert(len);