Try this:
$('#idOfPeoplePicker div.ms-inputuserfield>span.ms-entity-resolved').length
Вопрос
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??
Нет правильного решения
Другие советы
Try this:
$('#idOfPeoplePicker div.ms-inputuserfield>span.ms-entity-resolved').length