Created
November 7, 2012 13:35
-
-
Save vgrem/4031611 to your computer and use it in GitHub Desktop.
Clear SharePoint People Editor Control Value
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| //Clear People Picker | |
| //peoplePickerId - SharePoint People Editor ClientID | |
| function clearPeoplePickerBox(peoplePickerId) { | |
| var $pe = $("#" + peoplePickerId); | |
| var $peData = $pe.find("input[id$='hiddenSpanData']"); | |
| var $peDisplayArea = $pe.find("div[id$='_upLevelDiv']"); | |
| $peDisplayArea.children().remove(); | |
| $peData.val(""); | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment