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??

Pas de solution correcte

Autres conseils

Try this:

$('#idOfPeoplePicker div.ms-inputuserfield>span.ms-entity-resolved').length
Licencié sous: CC-BY-SA avec attribution
Non affilié à StackOverflow
scroll top