Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
SharePoint People Editor Validator with jQuery Validation plugin
//People Editor Validator with jQuery Validation plugin
function validatePeopleEditor(peId,messageText)
{
var $pe = $("#" + peId);
var $peValHolder = $pe.find("input[id$='hiddenSpanData']");
$peValHolder.rules("add", {
required: true,
messages: {
required: messageText
}
});
}
@ronakce

This comment has been minimized.

Copy link

@ronakce ronakce commented Apr 10, 2015

Thanks for sharing, can you please show example of how to use this within Jquery validation plugin ?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.