Try this:
$('#idOfPeoplePicker div.ms-inputuserfield>span.ms-entity-resolved').length
Question
Think of this scenario,
If I add two user entries to people picker(multiple selection is permitted) field.
I need to count these entries using java script/Jquery(Output what i want is: 2).
how can I do this. Is there any built in methods??
No correct solution
OTHER TIPS
Try this:
$('#idOfPeoplePicker div.ms-inputuserfield>span.ms-entity-resolved').length